plotGenotype | R Documentation |
plotGenotype
plots a genotype table.
plotGenotype(
genotype,
facet_by = NULL,
gene_sort = c("name", "position"),
text_size = 12,
silent = FALSE,
...
)
genotype |
|
facet_by |
column name in |
gene_sort |
string defining the method to use when sorting alleles.
if |
text_size |
point size of the plotted text. |
silent |
if |
... |
additional arguments to pass to ggplot2::theme. |
A ggplot object defining the plot.
inferGenotype
# Plot genotype
plotGenotype(SampleGenotype)
# Facet by subject
genotype_a <- genotype_b <- SampleGenotype
genotype_a$SUBJECT <- "A"
genotype_b$SUBJECT <- "B"
geno_sub <- rbind(genotype_a, genotype_b)
plotGenotype(geno_sub, facet_by="SUBJECT", gene_sort="pos")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.