dimarPlotSampleDensity: dimarPlotSampleDensity

View source: R/dimarPlotSampleDensity.R

dimarPlotSampleDensityR Documentation

dimarPlotSampleDensity

Description

Plots the protein intensity distributions of each sample.

Usage

dimarPlotSampleDensity(mtx, savePlot = FALSE, width = 5, height = 13)

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)
dimarPlotSampleDensity(mtx)

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