Plots a boxplot of the expression of a specific protein. Samples can be groups depending on a metadata column.
expression.boxplot(
DEprot.object,
protein.id,
which.data = "imputed",
sample.subset = NULL,
shape.column = NULL,
group.by.metadata.column = "column.id",
group.levels = NULL,
scale.expression = FALSE,
x.label.angle = 30
)
An object of class DEprot
or DEprot.analyses
.
String indicating a protein for which plot the expression. The identifier must correspond to the full row.name of the counts table (equivalent to the prot.id
column of the fold change table of DEprot.analyses
object).
String indicating which type of counts should be used. One among: 'raw', 'normalized', 'norm', 'imputed', 'imp'. Default: "imputed"
.
Character vector indicating a subset of samples to display. The identifiers must correspond to a IDs in the column.id
column of the object's metadata. Default: NULL
(all samples are shown).
String indicating a column from the metadata table. This column will be used as factor for the shape of the points on the boxplot. Default: NULL
: no different shapes.
String indicating a column from the metadata table. This column will be used to define sample groups, and for each group it will be computed a mean of the counts. Default: "column.id"
(no groups).
Ordered string vector indicating the order to use for the groups. Default: NULL
, counts table order will be applied
Logic value indicating whether Z-scores should be computed. Default: FALSE
(no scaling).
Numeric value indicating the rotation angle to use for the x-axis labels. Default: 30
.
A boxplot of class ggplot2.