R Under development (unstable) (2024-11-12 r87322 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 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.26 0.09 0.35