plot_genomic_origin: Plot Qualimap reads across genomic origin

Description Usage Arguments Value See Also Examples

View source: R/qualimap-plots.R

Description

This function plots reads across genomic origin. If info regarding the group each sample belongs to is also available, then the generated plot will take that into account to colour / facet accordingly.

Usage

1
plot_genomic_origin(..., interactive = TRUE, geom = c("jitter", "bar"))

Arguments

interactive

logical, default is TRUE, which returns an interactive plotly plot. If FALSE, it returns a static ggplot2 plot.

geom

Possible values are "jitter" (default) and "bar". "jitter" is only possible for interactive = TRUE, and is usually the preferred option since it provides the lowest ink ratio, and contains the least amount of clutter. "bar" is only possible when the input contains only one qualimap object.

...

The set of qualimap objects to plot, usually of the form sample_name_1 = obj1, sample_name_2 = obj2, etc. See examples. The names will be used as title for facets.

Value

The plot object

See Also

qualimap plot_bias_profile plot_coverage_profile plot_junction_analysis plot_read_alignment

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
path = system.file("tests/qualimap-sample", package="ggqualimap")
obj = qualimap(sample_info = file.path(path, "annotation.txt"))

# interactive jitter
plot_genomic_origin(sample = obj)

# interactive bar plot
plot_genomic_origin(sample = obj, geom="bar")

# non-interactive bar plot
plot_genomic_origin(sample = obj, geom="bar", interactive=FALSE)

openanalytics/ggqualimap documentation built on May 24, 2019, 2:28 p.m.