Example single-cell-style composition data for the freqPlot module
Source:R/data.R
example_composition.RdA per-cell record table from a simulated 12-donor immune profiling
experiment, shaped for dittoViz::freqPlot(). Each donor (sample)
contributes 150 cells and maps to exactly one condition and one batch,
which is the nesting freqPlot() requires to compare per-sample
cell-type frequencies across groups. batch is crossed with condition
(three donors each), so it works as a color.by without confounding the
comparison.
Format
A data frame with 1800 rows and 7 columns:
- cell_id
Unique cell identifier (character)
- sample
Donor identifier,
P01-P12(factor); 150 cells each- condition
Disease state,
HealthyorDisease(factor); six donors each- batch
Processing batch,
B1orB2(factor); crossed withcondition- cell_type
Annotated cell type (factor), the variable whose per-sample frequency
freqPlot()tabulates- n_genes
Number of genes detected in the cell (integer)
- percent_mito
Percentage of mitochondrial reads (numeric)
Source
Simulated. Per-donor compositions are Dirichlet draws around
condition-specific means, with cell counts drawn multinomially.
See data-raw/generate_example_data.R.