Skip to content

incompatibility of theme_void with theme_update #1880

@zkamvar

Description

@zkamvar

I noticed some odd behavior that may be a bug (or a feature). Using theme_update() to modify axis labels messes with theme_void():

library('ggplot2')
theme_update(axis.text.x = element_text(angle = 90))
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
     colour = factor(gear))) + facet_wrap(~am)
p + theme_void()
## Error in unit(rep(yp, n), "npc") : 'x' and 'units' must have length > 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions