plot_density_distribution_maf | R Documentation |
Create density distribution of MAF summary statistics.
plot_density_distribution_maf(
data,
maf.group,
aes.colour = ggplot2::aes(y = ..scaled.., color = POP_ID),
adjust.bin = 1,
x.title
)
data |
sumstats or tidy vcf summarised files. |
maf.group |
The GGPLOT2 aes (e.g. aes(x = FREQ_ALT, na.rm = F)). |
aes.colour |
GGPLOT2 aesthetics colour, e.g. aes(y = ..scaled.., color = POP_ID) or aes(y = ..count.., color = POP_ID) |
adjust.bin |
Adjust GGPLOT2 bin size (0 to 1). |
x.title |
Title of the x-axis. e.g. "MAF distribution" |
turn off the legend using fig + theme(legend.position = "none")
or
zoom in a section with 'fig + coord_cartesian(xlim = c(0, 0.1), ylim = c(0, 1))'.
Save the figure with : ggsave("figure name.pdf", width = 40, height = 20, dpi = 600, units = "cm", useDingbats = F)
.
Thierry Gosselin thierrygosselin@icloud.com
tidy_genomic_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.