【发布时间】:2021-04-26 09:43:26
【问题描述】:
我正在使用 R 编程语言。通常,当我制作绘图时,我使用的是 ggplot2 库,并且 aes() 选项可用于标记 x 轴并添加标题。但是这一次,我制作的图不是 ggplot2 对象,因此不能以相同的方式标记:
library(MASS)
library(plotly)
a = rnorm(100, 10, 10)
b = rnorm(100, 10, 5)
c = rnorm(100, 5, 10)
d = matrix(a, b, c)
parcoord(d[, c(3, 1, 2)], col = 1 + (0:149) %/% 50)
#error - this is also apparent because the ggplotly() command can not be used.
ggplotly(d)
有谁知道如何在该图的 x 轴上添加标签和一些标题?这里可以用ggplotly命令吗?
谢谢
【问题讨论】:
标签: r plot plotly data-visualization