Description Usage Arguments Details Value See Also
Make graphical representation of a 'one-way' genotype-phenotype contingency table
1 | twoway.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 rectangles are defined by two-locus genotypes, and fill color indicates phenotypic mean (or penetrance, in the case of a binary phenotype.)
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 genotype) contingency table for a single marker, with fill color
indicating phenotypic mean in each cell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.