multi.barplot: multi.barplot

Description Usage Arguments Value Examples

View source: R/gUtils.R

Description

Plot multiple bar plots based on a single data frame.

Usage

1
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

1
2
3
4
5
6
7
8
9
## 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")

Example output



OSAT documentation built on Nov. 8, 2020, 5:48 p.m.