ggforce
ggforce copied to clipboard
Use `facet_matrix`'s labels in `aes()`
I'd like the have shapes vary by the rows of a facet_matrix
, is this possible? How does one access the x/y panel ID?
library(ggplot2)
library(ggforce)
ggplot(mtcars) +
geom_point(aes(.panel_x, .panel_y)) +
facet_matrix(vars(mpg, cyl), vars(am, hp))
# How to have aes(shape = (.panel_x_var == "hp))?