Plot feature data and result of aggregation

plot_estimate(data, config, data_aggr, config_reduced, show.legend = FALSE)

Arguments

data

data.frame before aggregation

config

AnalyisConfiguration

data_aggr

data.frame after aggregation

config_aggr

AnalysisConfiguration of aggregated data

Examples


istar <- sim_lfq_data_peptide_config()
#> creating sampleName from fileName column
#> Warning: no nr_children column specified in the data, adding column nr_children and setting to 1.
#> completing cases
config <- istar$config
analysis <- istar$data

analysis <- prolfqua::transform_work_intensity(analysis, config, log2)
#> Column added : log2_abundance
bbMed <- estimate_intensity(analysis, config, .func = medpolish_estimate_dfconfig)
#> starting aggregation
tmpMed <- plot_estimate(analysis, config, bbMed$data, bbMed$config)
stopifnot("ggplot" %in% class(tmpMed$plots[[1]]))
stopifnot("ggplot" %in% class(tmpMed$plots[[2]]))

bbRob <- estimate_intensity(analysis, config, .func = rlm_estimate_dfconfig)
#> starting aggregation
#> Warning: 'rlm' failed to converge in 20 steps
#> Warning: 'rlm' failed to converge in 20 steps
tmpRob <- plot_estimate(analysis, config, bbRob$data, bbRob$config)
stopifnot("ggplot" %in% class(tmpRob$plots[[1]]))
stopifnot("ggplot" %in% class(tmpRob$plots[[2]]))