
R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(hexbin)
> 
> set.seed(572)
> 
> x <- rnorm(100)
> y <- rnorm(100)
> val <- rnorm(100)
> inc <- abs(rnorm(100,sd = .3))
> loB <- val-inc
> hiB <- val+inc
> 
> if(exists("hray", mode="function")) { # 'real soon now'
+ 
+ ## no confidence bounds
+ plot(x,y,type = 'n')
+ hray(x,y,val)
+ 
+ ## confidence bounds
+ plot(x,y,type = 'n')
+ hray(x,y,val, lo = loB, hi = hiB)
+ 
+ ## clockwise orientation
+ plot(x,y,type = 'n')
+ hray(x,y,val, loB, hiB, clockwise = TRUE)
+ 
+ ## no tics and small filled dots
+ plot(x,y,type = 'n')
+ hray(x,y,val, loB, hiB, ticlength = FALSE,
+      dotside = 20, dotlength = .025, dotden = -1)
+ 
+ }
> 
> proc.time()
   user  system elapsed 
  0.252   0.012   0.258 
