使用ggplotly
从GGPLOT2延长通话,我想大纲增加了点。
调用ggplot
作品,但延长了呼叫ggplotly
产生错误。
目标是(使用具有基于与黑色轮廓的连续可变填充有颜色点的交互积
pch
在这种情况下= 21)。
最小的可重复的例子:
library(ggplot2)
library(plotly)
ggplot(data=mtcars, aes(mpg, wt, fill=hp))+geom_point(pch=I(21))+scale_fill_continuous(low='red', high='blue')
ggplot(data=mtcars, aes(mpg, wt, fill=hp))+geom_point(pch=I(21))+scale_fill_continuous(low='red', high='blue')+ggplotly()
Error: Don't know how to add o to a plot In addition: Warning message: In L$marker$color[idx] <- aes2plotly(data, params, "fill")[idx] : number of items to replace is not a multiple of replacement length