great package! Been trying to use the label option following your example code:
> library(r3js)
> plot3js(x = runif(100),
+ y = runif(100),
+ z = runif(100),
+ col = rainbow(100),
+ label = paste("Point", 1:100))
Warning messages:
1: In if (grepl("x", label_axes)) { :
the condition has length > 1 and only the first element will be used
2: In if (grepl("y", label_axes)) { :
the condition has length > 1 and only the first element will be used
3: In if (grepl("z", label_axes)) { :
the condition has length > 1 and only the first element will be used
Points are plotted, but no labels. Below session info.
> sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.3
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] r3js_1.1.3
loaded via a namespace (and not attached):
[1] htmlwidgets_1.3 compiler_3.5.3 htmltools_0.3.6 tools_3.5.3 yaml_2.2.0 Rcpp_1.0.1 jsonlite_1.6 digest_0.6.18
Hi Sam,
great package! Been trying to use the label option following your example code:
Points are plotted, but no labels. Below session info.
Any ideas?