Learn R Programming

tmod (version 0.19)

showGene: A combined beeswarm / boxplot

Description

A combined beeswarm / boxplot

Usage

showGene(data, group, main = "", pch = 19, xlab = "",
  ylab = "log2 expression", las = 2, pwcol = NULL, ...)

Arguments

data
a vector of numeric values to be plotted
group
factor describing the groups
main
title of the plot
pch
character to plot the points
xlab,ylab
x and y axis labels
las
see par()
pwcol
colors of the points (see beeswarm)
...
any additional parameters to be passed to the beeswarm command

Details

This is just a simple wrapper around the beeswarm() and boxplot() commands.

Examples

Run this code
data(Egambia)
E <- as.matrix(Egambia[,-c(1:3)])
showGene(E["20799",], rep(c("CTRL", "TB"), each=15))

Run the code above in your browser using DataLab