Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找优秀的旅行团。我能够生成黑点动画,例如:
library(ggplot2) library(tourr) animate(flea[, 1:6])
但是如何按因子生成带有彩色点的动画呢?按大小,按年份等的示例颜色点。
您可以使用 ?animate_stereo它使用红蓝立体图来显示 3d 游览路径。
animate_stereo
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)))