hist_feature {MatrixQCvis} | R Documentation |
The function 'hist_compound' creates a histogram with the number of measured values per feature.
hist_feature(x, measured = TRUE, ...)
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'. |
'gg' object from 'ggplot2'
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)