Skip to content

Theme guidelines for developers of extension packages #171

@clauswilke

Description

@clauswilke

It would be good to provide some guidelines for developers adding themes to their extension packages. I suggest the following four points. It doesn't have to add a lot of text to the book.

  1. Always define your theme by starting from an existing theme.

  2. Use %+replace%, not +, to modify the starting theme, and set complete = TRUE.

  3. Don't overwrite the default theme.

  4. If your extension package defines new theme elements (new in ggplot 3.3.0), add them to the default theme. As an example of a user-defined new theme element, consider using the code in this comment.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions