https://www.jianshu.com/p/268f242abc93
https://blog.csdn.net/m0_49960764/article/details/122249790
1. 交互式三维散点图
https://zhuanlan.zhihu.com/p/567449344
plotly
> require(plotly)
> kk <- as.data.frame(list(aa=1:10, bb=1:10, cc=1:10, dd=c(rep("group_1", 5), rep("group_2", 5))))
> kk '#数据展示
aa bb cc dd
1 1 1 1 group_1
2 2 2 2 group_1
3 3 3 3 group_1
4 4 4 4 group_1
5 5 5 5 group_1
6 6 6 6 group_2
7 7 7 7 group_2
8 8 8 8 group_2
9 9 9 9 group_2
10 10 10 10 group_2
> plot_ly(data=kk, x = ~kk$aa, y = ~kk$bb, z = ~kk$cc, color = ~kk$dd,colors = c("red","blue")) #绘图,示例一
示例一
网友评论