multi.barplot {OSAT}R Documentation

multi.barplot

Description

Plot multiple bar plots based on a single data frame.

Usage

multi.barplot(x, grpVar = "plates", varList, main = NULL, ...)

Arguments

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.

Value

Use the side effect for plot. No return value.

Examples

## 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")

[Package OSAT version 1.34.0 Index]