Description Usage Arguments Details Value See Also
Make graphical representation of a 'one-way' genotype-phenotype contingency table
1 | oneway.plot(df, space = 1, ...)
|
df |
a dataframe from |
space |
numeric scalar; buffer to add between adjacent squares in the plot |
... |
ignored |
A two-way contingency table can be rendered as a tesselation of rectangles whose area is proportional to the corresponding cell counts. (This is sometimes called a "fluctiation plot".) In this version the plot is divided into columns by genotype, and the width of those columns is proportional to genotype frequency.
Due to low-level manipulation of axis breaks and labels, this function can only handle a single marker at a time. A warning will be issued if the input contains data from multiple markerks, although a (probably bogus) plot will still be drawn.
a ggplot
object equivalent to output from base-R
's mosaicplot()
,
plotting the (genotype x phenotype) contingency table for a single marker
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.