dimarPlotHeatmap: dimarPlotHeatmap

View source: R/dimarPlotHeatmap.R

dimarPlotHeatmapR Documentation

dimarPlotHeatmap

Description

Plots a heatmap of the protein intensity of a dataset. The samples are displayed in the columns and the proteins in the rows. The proteins are sorted according to an increasing number of missing values and a decreasing mean across all samples.

Usage

dimarPlotHeatmap(mtx, savePlot = FALSE, width = 6, height = 6)

Arguments

mtx

Numeric matrix

savePlot

Logical. If TRUE, the histogram is saved as pdf to working directory.

width

Width of pdf to which plot is saved if savePlot = TRUE.

height

Height of pdf to which plot is saved if savePlot = TRUE.

Value

None

Examples

library(DIMAR)
library(openxlsx)
filename <- "Test2.xlsx"
filepath <- system.file("extdata", filename, package = "DIMAR")
df <- read.xlsx(filepath, sheet="Sheet1", startRow = 2)
row.names(df) <- paste(c(1:nrow(df)), df$`Protein.(Uniprot.ID)`, sep = "_")
df <- df[, grepl("^AD\\d|^C\\d", names(df))]
mtx <- as.matrix(df)
dimarPlotHeatmap(mtx)

kreutz-lab/DIMAR documentation built on Aug. 19, 2024, 11:07 a.m.