Skip to content

Error from facet_wrap(strip.position = "bottom") + theme_void() #3045

Closed
@heavywatal

Description

@heavywatal
  • OK: facet_wrap(~cyl, ncol = 2L, strip.position = "bottom") + theme_grey()
  • NG: facet_wrap(~cyl, ncol = 2L, strip.position = "bottom") + theme_void()
  • OK: facet_wrap(~cyl, ncol = 2L, strip.position = "left") + theme_void()
  • OK: facet_wrap(~cyl, ncol = NULL, strip.position = "bottom") + theme_void()

It is observed with both release 3.1.0 and master

ggplot(mtcars, aes(disp, mpg)) +
  geom_point() +
  facet_wrap(~cyl, ncol = 2L, strip.position = "bottom") +
  theme_void()
# Error in if (params$strip.position == "bottom" && theme$strip.placement !=  :
#   missing value where TRUE/FALSE needed
# Calls: <Anonymous> ... ggplot_gtable.ggplot_built -> <Anonymous> -> f -> <Anonymous> -> f

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