View source: R/groupedBarPlot.R
Transforms long DF to wide format number matrix and plots grouped barplot
1 | groupedBarPlot<- function(DF, plotWithinGrp, plotAcrossGrp, transposeMatrix= FALSE)
|
1 2 3 4 5 6 7 8 | data <- data.frame(values = c(4, 1, 3, 6, 7, 3), # Create example data
group = rep(c("group 1",
"group 2",
"group 3"),
each = 2),
subgroup = LETTERS[1:2])
groupedBarPlot(data, "subgroup", "group", FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.