multi.barplot {OSAT} | R Documentation |
Plot multiple bar plots based on a single data frame.
multi.barplot(x, grpVar = "plates", varList, main = NULL, ...)
x |
A data frame. |
grpVar |
The variable for x-axix. |
varList |
A vector of variables, each will be used as y-axis for the multiple bar plot. |
main |
The overall title of the plot. |
... |
Additinal parameters for the plot function. |
Use the side effect for plot. No return value.
## create a random assignment and check it library("OSAT") data(example.setup) set.seed(10) c1 <- getLayout(gc) # available wells c1 <- c1[order(runif(nrow(c1))),] # shuffle randomly ranomSetup <- cbind(pheno, c1[1:nrow(pheno), ]) # create a sample assignment multi.barplot(ranomSetup, grpVar='plates', varList=c("SampleType", "Race", "AgeGrp"), main="A random case")