Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message for labels #1

Open
HannahVMeyer opened this issue Apr 8, 2019 · 1 comment
Open

Error message for labels #1

HannahVMeyer opened this issue Apr 8, 2019 · 1 comment

Comments

@HannahVMeyer
Copy link

Hi Sam,

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

Any ideas?

@shwilks
Copy link
Owner

shwilks commented Jan 14, 2021

Hi Hannah, sorry it took me a while to even see this issue! I think it should be fixed in the version but let me know if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants