Function to plot aggregated deconvolution results as boxplots for each cell type and method
Source:R/visualization.R
results_aggregated_boxplot.Rd
Function to plot aggregated deconvolution results as boxplots for each cell type and method
Arguments
- result
A data frame containing aggregated deconvolution results. Must have columns: 'sample', 'celltype', 'value', and 'method'. This can originate from
deconvolute_combined()
or any external source, as long as the structure matches.
Details
The input data frame must:
Contain columns: 'sample', 'celltype', 'value', and 'method'
'sample': sample identifier (character)
'celltype': cell type name (character)
'value': cell type fraction or proportion (numeric)
'method': deconvolution method name (character)
Example of a valid input:
sample | celltype | value | method |
Sample1 | A | 0.2 | method1 |
Sample1 | B | 0.5 | method1 |
Sample2 | A | 0.1 | method2 |
Sample2 | B | 0.7 | method2 |