【发布时间】:2016-04-09 07:31:06
【问题描述】:
ggplotly 使用 ggplot 删除 geom_line 图的图例。
参见例如下面:
library(plotly)
g <- ggplot(iris)
g = g + geom_line(aes(x = Sepal.Length, y = Sepal.Width, color = Species), size = 0.05)
g # Here is a legend
(gg <- ggplotly(g)) # Legend has now been removed.
任何想法如何找回传说?
我正在使用 plotly_2.0.19 和 ggplot2_2.0.0.9000。
【问题讨论】: