Plotly 是个交互式可视化的第三方库,官网提供了Python,R,Matlab,JavaScript,Excel的接口,因此我们可以很方便地在这些软件中调用Plotly,从而实现交互式的可视化绘图。

plotly支持facet,不过当facet的图形超过9个以后,legend处会出现bug。

栗子:

library(plotly)
set.seed(100)
d <- diamonds[sample(nrow(diamonds), 1000), ]
plot_ly(d, x = ~carat, y = ~price, color = ~carat,size = ~carat, text = ~paste("Clarity: ", clarity))

R----plotly包介绍学习

参考资料:

【1】官网 (https://plot.ly/r/)

【2】plot_ly 详细参数说明 (https://plot.ly/r/reference/)

相关文章:

  • 2022-02-08
  • 2021-07-19
  • 2021-05-31
  • 2021-11-29
  • 2022-01-15
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-12-26
  • 2021-09-12
  • 2021-07-18
  • 2021-12-05
  • 2021-10-13
  • 2021-10-07
相关资源
相似解决方案