R Highcharter:制作气泡图动画

时间:2019-01-29 20:37:27

标签: highcharts r-highcharter

如何绘制高图表气泡图?在此示例中,我不想显示数据框每一行的气泡,而是要显示一个气泡,然后在整个图表中从一个字母到另一个字母从左向右移动。

x <- letters
value <- runif(26, min = -5, max = 5)
weight <- runif(26, min = 50, max = 200)
percent <- runif(26, min = 0, max = 1)

data <- data.frame(x,value, weight, percent)

hchart(data, "bubble", hcaes(x = x, y = value, size = weight, color = 
                               percent), maxSize = "15%")%>%
  hc_colorAxis() %>%
  hc_motion(enabled = TRUE, labels = x) # added this line ... in hope

0 个答案:

没有答案