Skip to content

Default color for single-group displays: Black vs palette? #598

@zeileis

Description

@zeileis

As discussed in #595 (comment) and also highlighted at the end of #347 (comment), we currently do not handle the default color for single-group displays consistently across plot types. Some types use black as the default while others use the first palette color. 

tinytheme("clean2")
tinyplot(gear ~ 1, data = mtcars)
tinyplot(factor(gear) ~ 1, data = mtcars)
tinyplot(mpg ~ gear, data = mtcars)
tinyplot(mpg ~ factor(gear), data = mtcars)
Image

To resolve this issue we should probably think about the following two questions:

  1. Is it sensible to generally use black as the default color for single-group displays?
  2. If yes, should the black default be used even if the theme specified a different color in its palette?

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