Learn R Programming

TarSeqQC (version 1.2.0)

plotMetaDataExpl: Graphical exploration of a specific metadata column.

Description

plotMetaDataExpl plots density and box-plot of an specific metadata column. If the characteristic is non numerical, then a frequency plot is built.

Usage

plotMetaDataExpl(object, name = c("length", "gc", "pool"), log = FALSE, join = TRUE, absolute = FALSE, color = "blue")
"plotMetaDataExpl"(object, name = c("length", "gc", "pool"), log = FALSE, join = TRUE, absolute = FALSE, color = "blue")

Arguments

object
TargetExperiment class object.
name
a character indicating the metadata column name that should be analyzed.
log
Logical indicating if the numerical metadata column should be considered in log10 scale.
join
Logical only for numerical variables. It indicates if boxplot and density function should be plotted together using the ggplot2 geom_violin method.
absolute
Logical indicating if the frequencies of the selected categorical metadata column should be in absolute scale. If absoulte is FALSE the frequencies are in relative percentages.
color
A character indicating a valid name color.

Value

ggplot2 graphics.

See Also

plot, plotFeatPerform

Examples

Run this code
## Loading the TargetExperiment object
data(ampliPanel, package="TarSeqQC")

# Attribute boxplot and density plot exploration
g<-plotMetaDataExpl(ampliPanel, name="length")
if(interactive())
{
# x11(type="cairo")
g
}
# Explore amount of amplicons per gene
g<-plotMetaDataExpl(ampliPanel, name="gene", absolute=TRUE)
if(interactive())
{
# x11(type="cairo")
g
}

Run the code above in your browser using DataLab