ptrvListHeatmap: ptrvListHeatmap returns heatmap with rows as individuals and...

View source: R/ptrvListHeatmap.r

ptrvListHeatmapR Documentation

ptrvListHeatmap returns heatmap with rows as individuals and columns as ions

Description

ptrvListHeatmap returns heatmap with rows as individuals and columns as ions

Usage

ptrvListHeatmap(
  df,
  log = FALSE,
  normalizeByEval = FALSE,
  ionToRemove = NULL,
  formula = as.formula(product + subject + rep ~ ion),
  fun.aggregate = "mean",
  breaks = NULL,
  clusterRows = F,
  clusterCols = F,
  showRownames = F,
  showColnames = T,
  annotationRow = "product",
  scale = "column",
  cex = 0.8,
  transpose = FALSE
)

Arguments

df

data frame with "ion","intensity","product","subject" columns

log

boolean indicated if the intensities should be logged (TRUE) or not (FALSE)

normalizeByEval

Boolean. By default TRUE

ionToRemove

vector of character containing ions to remove from the analysis

formula

as.formula(product+subject+rep~ion) formula to be taken into account

fun.aggregate

"mean", "max" or "sum" for regrouping according to the frmula

breaks

a sequence of numbers that covers the range of values in mat and is one element longer than color vector. Used for mapping values to colors. Useful, if needed to map certain values to certain colors, to certain values. If value is NA then the breaks are calculated automatically. When breaks do not cover the range of values, then any value larger than max(breaks) will have the largest color and any value lower than min(breaks) will get the lowest color.

clusterRows

Boolean indicating whether the rows should be clustered

clusterCols

Boolean indicating whether the columns should be clustered

showRownames

boolean specifying if row names are be shown.

showColnames

boolean specifying if column names are be shown.

annotationRow

"product" or "subject" (annotation shown on the left side fo the heatmap)

scale

"none","column" or "row". Character indicating if the values should be centered and scaled in either the row direction or the column direction, or none.

cex

integer. Size of the text.

transpose

boolean specifying if the matrix is previously transposed (TRUE) or not (FALSE)


ChemoSens/PTRMSR documentation built on June 15, 2025, 10:40 a.m.