Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.pheno

Plot a phenotype distribution


Description

Plots a histogram or barplot of the data for a phenotype from an experimental cross.

Usage

plotPheno(x, pheno.col=1, ...)

Arguments

x

An object of class cross. See read.cross for details.

pheno.col

The phenotype column to plot: a numeric index, or the phenotype name as a character string. Alternatively, one may give a numeric vector of phenotypes, in which case it must have the length equal to the number of individuals in the cross, and there must be either non-integers or values < 1 or > no. phenotypes; this last case may be useful for studying transformations.

...

Passed to hist or barplot.

Details

Numeric phenotypes are displayed as histograms with approximately 2 sqrt(n) bins. Phenotypes that are factors or that have very few unique values are displayed as barplots.

Value

None.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

Examples

data(fake.bc)
plotPheno(fake.bc, pheno.col=1)
plotPheno(fake.bc, pheno.col=3)
plotPheno(fake.bc, pheno.col="age")

qtl

Tools for Analyzing QTL Experiments

v1.48-1
GPL-3
Authors
Karl W Broman <broman@wisc.edu> and Hao Wu, with ideas from Gary Churchill and Saunak Sen and contributions from Danny Arends, Robert Corty, Timothee Flutre, Ritsert Jansen, Pjotr Prins, Lars Ronnegard, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, Brian Yandell, and R Core Team
Initial release
2021-03-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.