You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This normally doesn't happen because we rebuild our own plain data.frame after evaluating aesthetics, but it becomes a problem before that when mapping facets:
devtools::load_all("~/packages/ggplot2/")
#> ℹ Loading ggplot2df<-mpg
class(df) <- union(class(df), "foo")
ggplot(df, aes(displ, hwy)) +
geom_point() +
facet_grid(~year)
#> Error in `vec_slice()` at ggplot2/R/facet-grid-.R:312:7:#> ! `x` must be a vector, not a <tbl_df/tbl/data.frame/foo> object.
This problem was identified in #6287 and affects 3 packages.
Essentially, when you're dealing with a
data.frame
superclass (rather than a subclass),vec_slice()
complains.Created on 2025-01-22 with reprex v2.1.1
This normally doesn't happen because we rebuild our own plain data.frame after evaluating aesthetics, but it becomes a problem before that when mapping facets:
ggplot2/R/facet-grid-.R
Line 312 in 97edd62
The text was updated successfully, but these errors were encountered: