Skip to content

More gallery additions#631

Merged
grantmcdermott merged 18 commits into
mainfrom
gallery-more
Jun 18, 2026
Merged

More gallery additions#631
grantmcdermott merged 18 commits into
mainfrom
gallery-more

Conversation

@grantmcdermott

Copy link
Copy Markdown
Owner

No description provided.

@zeileis

zeileis commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Good additions! I thought that a more standard barplot might be useful as well, e.g.,

library("tinyplot")
pal <- c("darkorange", "purple", "cyan4")
tinytheme("minimal", las = 1, palette.qualitative = pal)
tinyplot(~ island | sex + species, facet = ~ species, data = penguins,
  type = "barplot", flip = TRUE, facet.args = list(ncol = 1),
  col = "transparent", bg = rbind(pal, colorspace::lighten(pal, 0.6)))
image

We can also drop the grouping by sex if we want to make it a little bit simpler.

And possibly the visualization of Simpson's paradox?

tinyplot(bill_dep ~ bill_len | species, data = penguins, pch = c(16, 17, 15),
  main = "Bill dimensions for different penguin species",
  sub = "Species-specific correlation and overall",
  xlab = "Bill length (mm)", ylab = "Bill depth (mm)")
tinyplot_add(type = "lm", se = FALSE, lwd = 2)
tinyplot_add(bill_dep ~ bill_len, type = "lm", se = FALSE, lwd = 2, lty = 2, col = "darkgray")
image

@grantmcdermott

Copy link
Copy Markdown
Owner Author

Ah, I like your (simpler) Simpson's paradox figure more than mine. Will quickly update.

(Yes, let's add a "vanilla" barplot example too. I'd like for there to be an even number of examples for balance, so we should think of something else to add too. I was thinking last night that it would be cool to support stacked area plots, so maybe we pair those too once/if we get a working variant.)

@zeileis

zeileis commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Maybe another multivariate time series plot? One could use one of the examples from #558

(Either we wait until tinyplot.ts is in main or we set up the plot manually.)

Another potentially useful example is a figure that I produced mimicking from the IPCC report.

ipcc-lineplot-1

@grantmcdermott

Copy link
Copy Markdown
Owner Author

Oooh, those are both great ideas.

(I really like the IPCC plot. Might be cool to try with `legend = "direct" too? Is the data easy to read/furnish as part of the automated website deployment?)

I'm going to go ahead and merge these latest additions once the CI finishes. But please free to suggest these in a separate PR. I'm glad that the gallery is finally getting some love. It's starting to look pretty good now...

@grantmcdermott grantmcdermott merged commit 1b00b77 into main Jun 18, 2026
3 checks passed
@grantmcdermott grantmcdermott deleted the gallery-more branch June 18, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants