ggplot(mpg, aes(displ, hwy)) +
geom_point() +
facet_wrap(c("cyl", "drv"), labeller = labeller(.multi_line = FALSE))
I would like to replace the comma with space in labels.
mpg$label <- paste(mpg$cyl, mpg$drv)
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
facet_wrap(~label)