【问题标题】:ggvis in R: Change color when mouse hoverR中的ggvis:鼠标悬停时更改颜色 【发布时间】:2021-06-08 07:47:27 【问题描述】: 有代码可以实现GGVIS首页第一张示例图吗? https://ggvis.rstudio.com/ 我想要的功能是当我将鼠标悬停在栏上时颜色会发生变化。 谢谢。 【问题讨论】: 标签: r shiny ggvis 【解决方案1】: 试试fill.hover 参数: library(ggvis) faithful %>% ggvis(~eruptions, fill := "#fff8dc", fill.hover := "#fcb5a2") %>% layer_histograms(width = 0.25) 【讨论】: