Description Usage Arguments Details Value Author(s) See Also Examples
This function plots the phenotype versus the most probable genotype at a single marker.
1 |
pheno |
Data.frame containing the phenotype data with samples in rows and phenotypes in columns. Sample IDs in rownames and phenotype names in colnames. |
pheno.col |
Numeric or character vector: Either a vector of number that indicate columns to use or a set of column names in pheno. |
probs |
3D numeric array, containing the founder haplotype contributions or genotype probabilities. The sample IDs, founder letter codes and markers IDs must be in dimnames. |
snp.id |
Character string containing the marker to plot at. Must be in SNPs and dimnames(probs)[[3]]. |
snps |
Data.frame containing 4 columns with marker location information. SNP ID, chr, Mb, cM in columns 1 through 4, respectively. |
legend |
Boolean that is true if a legend explaining the founder letter codes should be plotted. |
sex |
Character that is either FALSE or M, indicating sex. This is used only when the SNP ID is on the X chromosome and all of the samples are male. In this case, there are only 8 genotype states. |
covar |
Vector of categories for each sample (i.e. diet, treatement, etc.) which will be plotted as different symbols. Optional. |
... |
Additional arguments passed along to plot. |
The most probable genotype is inferred from the eight founder allelic contributions at the marker. If a founder has a value > 0.75, it is assumed to be homozygous.
Creates a plot with the phenotype on the y-axis and the 36 DO genotypes on the x-axis.
Daniel Gatti
1 | ## Not run: pxg.plot(pheno, pheno.col, founder.probs, snp.id, snps)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.