hist_feature {MatrixQCvis}R Documentation

Histogram for measured value per feature

Description

The function 'hist_compound' creates a histogram with the number of measured values per feature.

Usage

hist_feature(x, measured = TRUE, ...)

Arguments

x

'matrix' containing intensities. Missing values are encoded as 'NA'.

measured

'logical', should the measured values ('measured = TRUE') or missing values ('measured = FALSE') be taken

...

additional parameters passed to 'geom_histogram', e.g. 'binwidth'.

Value

'gg' object from 'ggplot2'

Examples

x <- matrix(c(c(1, 1, 1), c(1, NA, 1), c(1, NA, 1), 
    c(1, 1, 1), c(NA, 1, 1), c(NA, 1, 1)), byrow = FALSE, nrow = 3)
colnames(x) <- c("A_1", "A_2", "A_3", "B_1", "B_2", "B_3")
hist_feature(x, binwidth = 1)


[Package MatrixQCvis version 1.0.0 Index]