1

我正在尝试使用rbokeh.

可以在下面找到一个示例:

library(rbokeh)
# Simple approach:
h1 <- figure(width = 600, height = 400) %>%
            ly_hist(eruptions, data = faithful, breaks = 40, freq = T)

# Overlaying approach:
faithful$grouper <-  sample(c("A","B"), 272, replace = T)

h2 <- figure(width = 600, height = 400) %>%
            ly_hist(eruptions, data = faithful, breaks = 40, freq = T, color = grouper)

我不确定该color选项是否会提供此功能。

谢谢你的帮助。

4

0 回答 0