You could place the strip text on the right via the strip.position
argument of facet_wrap
and make them horizontal via the theme
option strip.text.y
:
library(ggplot2)
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
facet_wrap(vars(class), strip.position = "right") +
theme(strip.text.y = element_text(angle = 0))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.