我在看tourr这个很棒的套餐。我可以生成黑点动画,例如:
library(ggplot2)
library(tourr)
animate(flea[, 1:6])但是如何按因子生成带有彩色点的动画呢?示例颜色点的大小,年份等。
发布于 2013-01-19 21:28:29
您可以使用?animate_stereo它使用红蓝浮雕来显示3d浏览路径。
animate_stereo(flea[, 1:6])或者类似这样的东西:
animate(data = flea[, 1:6], tour_path = grand_tour(4),
display = display_stereo(blue = rgb(0, 0, 1),
red = rgb(1, 0, 0)))https://stackoverflow.com/questions/14414713
复制相似问题