showGene: A combined beeswarm / boxplot

Description Usage Arguments Details Examples

View source: R/visualizations.R

Description

A combined beeswarm / boxplot

Usage

1
2
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

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

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

tmod documentation built on Nov. 30, 2018, 4:19 p.m.