sample_dice_large | R Documentation |
A larger toy dataset for testing geom_dice()
performance and
demonstrating scalability with bigger datasets.
data("sample_dice_large")
A data frame with variables:
taxon
character. Microbial taxon name
disease
character. Disease condition
specimen
character. Body site specimen
replicate
numeric. Replicate number
lfc
numeric. Log2 fold change value
q
numeric. Adjusted p-value (q-value)
This dataset contains a larger number of observations than the basic sample datasets. It is designed to test performance and demonstrate how dice plots scale with larger data, including automatic sizing and boundary validation.
Simulated data for package demonstration purposes.
data(sample_dice_large)
head(sample_dice_large)
dim(sample_dice_large)
# Example with larger dataset
library(ggplot2)
ggplot(sample_dice_large, aes(x = specimen, y = taxon)) +
geom_dice(aes(dots = disease, fill = lfc, size = -log10(q)),
ndots = 6, na.rm = TRUE, show.legend = TRUE) +
theme_minimal() +
theme(axis.text.y = element_text(size = 8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.