Learn R Programming

rafalib (version 1.0.3)

bartab: bartab

Description

Plot the overlap of three groups with a barplot

Usage

bartab(x, y, z, names, skipNone = FALSE, ...)

Arguments

x

logical

y

logical

z

logical

names

a character vector of length 3

skipNone

remove the "none" group

...

further arguments passed on to barplot

Author

Michael I. Love

Examples

Run this code

set.seed(1)
x <- sample(c(FALSE,TRUE), 10, replace=TRUE)
y <- sample(c(FALSE,TRUE), 10, replace=TRUE)
z <- sample(c(FALSE,TRUE), 10, replace=TRUE)
bartab(x,y,z,c("X","Y","Z"))

Run the code above in your browser using DataLab