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
See also
Other plotting:
ContrastsPlotter,
INTERNAL_FUNCTIONS_BY_FAMILY,
missingness_per_condition(),
missingness_per_condition_cumsum(),
plot_estimate(),
plot_heatmap(),
plot_heatmap_cor(),
plot_hierarchies_boxplot_df(),
plot_hierarchies_line(),
plot_intensity_distribution_violin(),
plot_na_heatmap(),
plot_pca(),
plot_raster(),
plot_sample_correlation(),
theme_prolfqua(),
upset_interaction_missing_stats(),
upset_missing_stats()
Other imputation:
get_contrast(),
missingness_per_condition(),
missingness_per_condition_cumsum(),
upset_interaction_missing_stats(),
upset_missing_stats()
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))