简体   繁体   English

从 R 中的 car::scatter3d() 中删除组标签

[英]Remove group labels from car::scatter3d() in R

I have something like this and I want to remove the group labels from the ellipsoids我有这样的东西,我想从椭圆体中删除组标签

car::scatter3d(x, y, z, groups = group, surface=FALSE, grid = FALSE, ellipsoid = TRUE)

Is there a way to remove the group labels because there are overlapping and cannot be distinguished?有没有办法去除组标签,因为有重叠,无法区分?

An illustrative example is:一个说明性的例子是:

car::scatter3d(x = iris$Sepal.Length, y = iris$Sepal.Width, z = iris$Petal.Length, groups = iris$Species, surface=FALSE, grid=FALSE, ellipsoid = TRUE)

This problem has driven me crazy for years and I haven't found a solution.这个问题让我疯狂多年,我还没有找到解决方案。 The best workaround I could come up with was to change the group labels to "."我能想到的最佳解决方法是将组标签更改为“。” and "*" so that they are barely noticeable in the plot.和“*”,因此它们在 plot 中几乎不会被注意到。 If I could even change the size, color, or position of the group labels that might be a better solution, but I cannot figure out how to do that either, Ideally, I would really like to be able to remove the group labels that are automatically added when ellipsoid=T as well!如果我什至可以更改组标签的大小、颜色或 position 可能是一个更好的解决方案,但我也无法弄清楚如何做到这一点,理想情况下,我真的希望能够删除组标签当 ellipsoid=T 时自动添加!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM