R geom_箱线图与ggplotly和HIGHGHTED一起使用时出错
当将geom_箱线图与ggplotly结合使用并突出显示_键时,我会收到一条错误消息,内容为必须命名R geom_箱线图与ggplotly和HIGHGHTED一起使用时出错,r,highlight,ggplotly,R,Highlight,Ggplotly,当将geom_箱线图与ggplotly结合使用并突出显示_键时,我会收到一条错误消息,内容为必须命名..的所有元素。 您想要key=c(key)? 例如,此脚本会产生以下错误: d <- highlight_key(subset(txhousing, year >= 2012 & !is.na(median)), ~city) p <- ggplot(d, aes(date, median, group = city)) + geom_jitter() + geom
..
的所有元素。
您想要key=c(key)
?
例如,此脚本会产生以下错误:
d <- highlight_key(subset(txhousing, year >= 2012 & !is.na(median)), ~city)
p <- ggplot(d, aes(date, median, group = city)) + geom_jitter() + geom_boxplot()
gg <- ggplotly(p, tooltip = "city")
highlight(gg, dynamic = TRUE)
d=2012&!is.na(中间值)),~city)
p您是否尝试过使用stat\u boxplot(aes(group=city))
而不是geom\u boxplot()
?使用stat\u boxplot没有任何区别。我也犯了同样的错误。
d <- highlight_key(subset(txhousing, year >= 2012 & !is.na(median)), ~city)
p <- ggplot(d, aes(date, median, group = city)) + geom_jitter()
gg <- ggplotly(p, tooltip = "city")
highlight(gg, dynamic = TRUE)