sample_dice_large: Large Sample Dataset for Performance Testing

sample_dice_largeR Documentation

Large Sample Dataset for Performance Testing

Description

A larger toy dataset for testing geom_dice() performance and demonstrating scalability with bigger datasets.

Usage

data("sample_dice_large")

Format

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)

Details

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.

Source

Simulated data for package demonstration purposes.

Examples

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))

ggdiceplot documentation built on Aug. 22, 2025, 1:08 a.m.