What I'd like it's to remove those labels on the right side, the ones on gray boxes on the side. I'll give an example:
p <- ggplot(mtcars, aes(mpg, wt, col=factor(cyl))) + geom_point() p + facet_grid(cyl ~ .)
Thanks in advance!
Juan
Facet labelsSetting strip. text to element_blank() will remove all facet labels. You can also remove the labels across rows only with strip.
While facet_grid shows the labels at the margins of the facet plot, facet_wrap creates a label for each plot panel.
Facet L herbicide harnesses the trusted control of Facet herbicide in a convenient liquid formulation, giving rice growers easy, consistent control of annual grasses and broadleaf weeds. Labels & sds.
facet_grid() forms a matrix of panels defined by row and column faceting variables. It is most useful when you have two discrete variables, and all combinations of the variables exist in the data.
The following would do that:
p <- ggplot(mtcars, aes(mpg, wt, col=factor(cyl))) + geom_point() p <- p + facet_grid(cyl ~ .) p <- p +theme(strip.text.y = element_blank())
Without rectangles
p <- ggplot(mtcars, aes(mpg, wt, col=factor(cyl))) + geom_point() p <- p + facet_grid(cyl ~ .) p <- p + theme(strip.background = element_blank(), strip.text.y = element_blank())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With