View source: R/distribution_mapped_reads.R
plot_mapped_reads_distribution | R Documentation |
This function creates a boxplot or a densityplot to show the distribution of the mapped reads in different samples. This function can be used to assess the quality of the samples. Samples which show roughly the same distribution have good quality.
plot_mapped_reads_distribution(
screenR_Object,
palette = NULL,
alpha = 1,
type = "boxplot"
)
screenR_Object |
The ScreenR object obtained using the
|
palette |
The color vector that as to be used for the plot. |
alpha |
A value for the opacity of the plot. Allowed values are in the range 0 to 1 |
type |
The type of plot. The default is "boxplot" the other option is "density." |
Return a tibble containing the number of mapped read for each sample
object <- get0("object", envir = asNamespace("ScreenR"))
# Boxplot
plot_mapped_reads_distribution(object)
# Density
plot_mapped_reads_distribution(object, type = "density")
plot_mapped_reads_distribution(object, type = "density", alpha = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.