Skip to contents

Histogram summarizing missingness

Usage

missingness_histogram(
  lfqdata,
  showempty = FALSE,
  factors = lfqdata$relevant_factor_keys(),
  alpha = 0.1
)

Arguments

lfqdata

LFQData object with the data and its configuration

showempty

show empty values

factors

factor columns to use

alpha

transparency

Value

a ggplot object with density plots of the mean intensity per number of missing values, faceted by factor levels

Examples


istar <- sim_lfq_data_peptide_config()
#> `protein_Id`: columns `proteinID`, `idtype2` united with separator '~'.
#> creating sampleName from file_name column
#> setup_analysis: dropped 6 unconfigured columns: average_prot_abundance, sd, mean, N, avg_peptide_abd, Replicate.
#> setup_analysis: added 36 rows with NA response for feature and sample combinations absent from the input.
lfq <- LFQData$new(istar$data, istar$config)
pl <- missingness_histogram(lfq, showempty = FALSE)
stopifnot("ggplot" %in% class(pl))
pl <- missingness_histogram(lfq, showempty = TRUE)
stopifnot("ggplot" %in% class(pl))