禁用" Stacked"选项" multiBarChart" " rChart"

时间:2016-05-12 21:48:26

标签: r rcharts

如何停用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

1 个答案:

答案 0 :(得分:2)

n1$chart(showControls = FALSE)