我正在尝试自定义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
任何建议将不胜感激
答案 0 :(得分:1)
我认为您正在使用radius
来更改点的大小,但是radius
仅适用于使用type="s"
打印球体的情况。要更改点的大小,请使用size
。
with(df_new, plot3d(PC1,PC2,PC3, col = color, type="p", size = 0.5))
尽管大小= 0.5将非常小。