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
)

Arguments

DEprot.object

An object of class DEprot or DEprot.analyses.

protein.id

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).

which.data

String indicating which type of counts should be used. One among: 'raw', 'normalized', 'norm', 'imputed', 'imp'. Default: "imputed".

sample.subset

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).

shape.column

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.

group.by.metadata.column

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).

group.levels

Ordered string vector indicating the order to use for the groups. Default: NULL, counts table order will be applied

scale.expression

Logic value indicating whether Z-scores should be computed. Default: FALSE (no scaling).

x.label.angle

Numeric value indicating the rotation angle to use for the x-axis labels. Default: 30.

Value

A boxplot of class ggplot2.