sample_dice_data2 | R Documentation |
An extended toy dataset for demonstrating advanced geom_dice()
functionality with missing data handling and more complex scenarios.
data("sample_dice_data2")
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)
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.
Simulated data for package demonstration purposes.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.