【问题标题】:Can not customize points in rgl plot3D无法在 rgl plot3D 中自定义点
【发布时间】:2018-11-03 00:40:16
【问题描述】:

我正在尝试自定义我的3D pca 图表中的点,但无论我做什么,它们都只是保持为点,并且它们的大小无法更改:

with(df_new, plot3d(PC1,PC2,PC3, col = color, type="p", radius = 0.5))

sessionInfo():

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.4

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_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats4    parallel  stats     graphics  grDevices utils     
datasets  methods   base  

任何建议将不胜感激

【问题讨论】:

    标签: r macos rgl


    【解决方案1】:

    我认为您正在使用radius 更改点的大小,但radius 仅适用于使用type="s" 打印球体时。要更改点的大小,请使用size

    with(df_new, plot3d(PC1,PC2,PC3, col = color, type="p", size = 0.5))
    

    虽然 size=0.5 会非常小。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多