View source: R/geom_frequencies.R
geom_frequencies | R Documentation |
This function allows you to plot allele frequencies for several potential levels of stratum and loci.
geom_frequencies(x, ...)
x |
The data frame with allele frequencies from |
... |
Ingnored but passed on to |
An object of type ggplot
This function does a pretty good job of plotting but if you have too many loci and/or strata, you may have a difficult time getting it to look right. By default, the function does NOTHING to prevent you from making crappy plots with too many levels. To plot a reduced number of loci/strata, use a subset of your data.
Rodney J. Dyer rjdyer@vcu.edu
data(arapat)
freqs <- frequencies( arapat )
require(ggplot2)
ggplot() + geom_frequencies( freqs )
freqs <- frequencies( arapat, loci="EN", stratum="Cluster")
ggplot() + geom_frequencies( freqs ) + facet_grid(.~Stratum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.