说您有以下DF:x当您使用GGPLOT绘制它时,一切似乎都起作用:ggplot(data=data,aes(x=x,y=y))+geom_bar(stat="identity")GGPLOT有效但是,如果我们围绕它添加一个ggplotly包装,则图形消失了。ggplotly(ggplot(data=data,aes(x=x,y=y))+geom_bar(stat="identity"))ggplotly不起作用我收到一条警告消息,上面写着:我们建议您使用ggplot2的开发版本ggplotly().现在,如果我删除日期格式,则gglotly确实有效。x因此,GGPLOTLY处理GEOM_BAR
我有以下数据集:dput(head(table_age))structure(list(Age=c("0-19","20-24","25-29","30-34","35-39","40-44"),Freq_nominal=c(1321,3446,5354,7233,7471,6623),Freq_percent=c(1.92,5.01,7.79,10.52,10.86,9.63),Percent=c("1.92%","5.01%","7.79%","10.52%","10.86%","9.63%"),Nominal=c(1321,3446,5354,7233,7471,6623),female
plotlygivingincorrecttextonhoverinstackedbarcharts我正在将plotly与RStudio一起使用。plotly在悬停时为图表中的堆叠条提供了不正确的文本,除了最顶部的条。可重现的例子123456789101112131415161718192021222324 df make=rep(c('Toyota','Honda','Volkswagen'),4), segment=c(rep('high',3),rep('mid',3),rep('low',3),rep('entry',3)), sales=c(25,35,75,35,35,30,
plotlygivingincorrecttextonhoverinstackedbarcharts我正在将plotly与RStudio一起使用。plotly在悬停时为图表中的堆叠条提供了不正确的文本,除了最顶部的条。可重现的例子123456789101112131415161718192021222324 df make=rep(c('Toyota','Honda','Volkswagen'),4), segment=c(rep('high',3),rep('mid',3),rep('low',3),rep('entry',3)), sales=c(25,35,75,35,35,30,