oneway.plot: Make graphical representation of a 'one-way'...

Description Usage Arguments Details Value See Also

Description

Make graphical representation of a 'one-way' genotype-phenotype contingency table

Usage

1
oneway.plot(df, space = 1, ...)

Arguments

df

a dataframe from oneway()

space

numeric scalar; buffer to add between adjacent squares in the plot

...

ignored

Details

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.

Value

a ggplot object equivalent to output from base-R's mosaicplot(), plotting the (genotype x phenotype) contingency table for a single marker

See Also

oneway


andrewparkermorgan/argyle documentation built on May 10, 2019, 11:08 a.m.