如何停用Stacked
生成的multiBarChart
中的rCharts
选项。
data <- data.frame(Var = c(1, 2, 3, 4),
Fac1 = rep(c("A" ,"B"), 2),
Fac2 = rep(c("Blue", "Red"), each=2))
require(rCharts)
n1 <- nPlot(Var ~ Fac2, group = "Fac1", data = data, type = "multiBarChart")
n1
答案 0 :(得分:2)
n1$chart(showControls = FALSE)