Summarize missing in condition as barplot
Source:R/tidyMS_missingness_summary.R
missingness_per_condition.RdSummarize missing in condition as barplot
Arguments
- lfqdata
LFQData object with the data and its configuration
- factors
factor columns to use
Value
a list with data, a wide tibble with one row per condition and one column per number of missing
values holding the feature count, and figure, a ggplot bar chart of these counts
See also
Other plotting:
ContrastsPlotter,
INTERNAL_FUNCTIONS_BY_FAMILY,
missingness_histogram(),
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_histogram(),
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)
res <- missingness_per_condition(lfq)
stopifnot("ggplot" %in% class(res$figure))
stopifnot(ncol(res$data) >= 5)