Description Usage Arguments Details Value Author(s)
If ggplot2 is installed, then this function will use it to make
the genotype plot. Otherwise, "classic" R base graphics will be
used. The ggplot2 version is made using the function
plot_geno
. The "classic" R base graphics version is made
using the function plot_geno_base
.
1 2 3 4 |
x |
The output from |
gg |
Should we use ggplot2 to plot the genotypes
( |
plot_beta |
A logical. If true, then we'll plot the estimated beta density of the outlier model, followed by the estimated beta distributions of the overdispersion models. |
ask |
A logical. Should we ask before continuing on to the
next plot ( |
use_colorblind |
A logical. Should we use a colorblind safe palette ( |
show_maxpostprob |
A logical. Should we scale the sizes by |
show_ogeno |
A logical. Should we color code by |
show_outlier |
A logical. Should we scale the transparency by |
... |
Not used. |
The returned plot is what we call a "genotype plot". On the x-axis is the number of "a" reads and on the y-axis is the number of "A" reads, where "a" and "A" are the possible alleles. If available, the observations are colorcoded by estimated genotype (via the maximum a posteriori classifier), their transparency is proportional to the the posterior probability that a point is an outlier, and their size is (possibly) scaled by their maximum posterior probability. The lines are defined by the equation
A / (A + a) = p,
where A is the number of "A" reads, a is the number of "a" reads, and p is the proportion of counts we would expect to observe on average given the genotype of an individual, the sequencing error rate, and the read-mapping bias.
If there is parental data, these are also plotted with crosses and plusses.
If the parents have larger counts than the offspring, then (at least
when gg = TRUE
) the parental
counts are scaled until they just reach the plot. The scaled parental counts
are labeled on the plot with a semi-transparent "(scaled)".
The second plot is the distribution of outlying points.
The third plot contains the underlying beta densities for the different genotypes.
A plot object.
David Gerard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.