dimarPlotFacetHist: dimarPlotFacetHist

View source: R/dimarPlotFacetHist.R

dimarPlotFacetHistR Documentation

dimarPlotFacetHist

Description

Plots a faceted histogram displaying the percentage of missing values for separate intensity intervals. For this the median protein intensity values calculated across all samples are used. # Addapted from:

Usage

dimarPlotFacetHist(mtx, nbins = 20, savePlot = FALSE, width = 13, height = 5)

Arguments

mtx

Numeric matrix

nbins

Amount of intensity intervals the range of intensity values should be split into.

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

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