View source: R/rnaseq_workflow_qc.R
plot_mapping_categories | R Documentation |
Create stacked barplots with percentages for types of genomic annotations.
plot_mapping_categories( data, fill = NULL, sort = F, ids = NULL, invert = F, consolidate = F, return_data = F )
data |
A data frame with annotation data in the same format as |
fill |
A string vector with 3 or 6 colors corresponding to cateogires for the barplot. |
sort |
A logical. Should the x-axis be ordered by coding sequence/exonic alignment percentage? |
ids |
A vector of rownames for subsetting |
invert |
A logical. Should |
consolidate |
A logical. Should mapping categories be consolidated into the three more general categories of exonic, intronic, and intergenic? |
return_data |
A logical. Should plot data be returned instead of a ggplot object? |
Create barplots with the percentage of alignments that map to a genomic region with annotations of intergenic, proximally down and upstream of genes, intronic, UTRs or coding sequence. Includes the option to consolidate categories into more general categories for intergenic, intronic, and exonic regions.
A ggplot object. If return_data
is TRUE
, then a data frame with the plot data
values for each genomic annotation category as columns.
load_paired_end_qc_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.