View source: R/visualization.R
plot_snp_distribution | R Documentation |
Plot a barplot of SNP distribution across chromosomes
plot_snp_distribution(marker_ranges)
marker_ranges |
Genomic positions of SNPs. For a single trait, a GRanges object. For multiple traits, a GRangesList or CompressedGRangesList object, with each element of the list representing SNP positions for a particular trait. List elements must have names for proper labelling. |
A ggplot object.
data(snp_pos)
p <- plot_snp_distribution(snp_pos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.