sample_dice_data1 | R Documentation |
A toy dataset for demonstrating the geom_dice()
function. It simulates
log fold-change (LFC) and adjusted p-values (q-values) for oral taxa across
disease types and specimen sites.
data("sample_dice_data1")
A data frame with 48 rows and 5 variables:
taxon
character. Microbial taxon name
disease
character. Disease condition (Caries, Periodontitis, Healthy, Gingivitis)
specimen
character. Body site specimen (Saliva, Plaque)
lfc
numeric. Simulated log2 fold change value
q
numeric. Simulated adjusted p-value (q-value)
This dataset contains simulated microbiome data across different oral health conditions and specimen types. It is designed to demonstrate basic dice plot functionality with categorical mapping of diseases to dice positions.
Simulated data for package demonstration purposes.
data(sample_dice_data1)
head(sample_dice_data1)
# Basic dice plot example
library(ggplot2)
ggplot(sample_dice_data1, aes(x = specimen, y = taxon)) +
geom_dice(aes(dots = disease, fill = lfc, size = -log10(q)),
ndots = 4, show.legend = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.