Skip to content

facet_grid() issue #525

@moodymudskipper

Description

@moodymudskipper

facet_wrap works ok, not facet_grid, isn't this tested ?

library(ggplot2)
plt <- ggplot(data = mpg) + 
  geom_point(mapping = aes(x = displ, y = hwy)) + 
  facet_grid(drv ~ cyl)
constructive::construct(plt, data = list(data = mpg))
#> {constructive} couldn't create code that reproduces perfectly the input
#> ℹ Call `construct_issues()` to inspect the last issues
#> data |>
#>   ggplot2::ggplot() +
#>   ggplot2::geom_point(mapping = ggplot2::aes(displ, hwy)) +
#>   constructive::.env(
#>     "0x10f3033c0",
#>     parents = "empty",
#>     class = c("FacetGrid", "Facet", "ggproto", "gg")
#>   )

Created on 2025-03-13 with reprex v2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions