sample_dice_data2: Extended Sample Dice Dataset

sample_dice_data2R Documentation

Extended Sample Dice Dataset

Description

An extended toy dataset for demonstrating advanced geom_dice() functionality with missing data handling and more complex scenarios.

Usage

data("sample_dice_data2")

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 (may contain NA)

q

numeric. Adjusted p-value (q-value, may contain NA)

Details

This dataset extends sample_dice_data1 with additional complexity including missing values and edge cases. It is designed to demonstrate how dice plots handle missing data and various data preprocessing scenarios.

Source

Simulated data for package demonstration purposes.

Examples

data(sample_dice_data2)
head(sample_dice_data2)

# Example with missing data handling
library(ggplot2)
ggplot(sample_dice_data2, aes(x = specimen, y = taxon)) +
  geom_dice(aes(dots = disease, fill = lfc, size = -log10(q)),
            ndots = 4, na.rm = TRUE, show.legend = TRUE)

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