Skip to content

Area-based plot types: light opaque multi-group color #646

Description

@zeileis

In the discussion of #614 we decided to use lighter opaque (non-transparent) colors for area-based displays. However, it seems like we only implemented this for the single-group case but not the multi-group case.

In the multi-group case we still get semi-transparent (and hence light) colors for histograms and boxplots and dark opaque colors for barplots. Hence, the difference is really striking for barplots:

library("tinyplot")
tinytheme("clean2")
tinyplot(~ species, data = penguins)
tinyplot(~ species | island, data = penguins)
Image

For boxplots the difference is more subtle but if you know it it's hard to overlook it in themes with grid lines:

tinyplot(body_mass ~ species, data = penguins)
tinyplot(body_mass ~ species | sex, data = penguins)
Image

For the multi-group histograms one could argue, though, that semi-transparency is the right thing because the distributions will often be overlapping:

tinyplot(body_mass ~ 1, data = penguins)
tinyplot(body_mass ~ 1 | sex, data = penguins)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions