Closed
Description
I found a problem with the angle of strip text when using facet_wrap().
I expected the angle of the strip text to rotate according to the angle argument of the element_text() function in the theme function. The text only rotates when strip.position is "top" or "bottom," not "left" or "right."
Here is the code to reproduce the bug:
library(ggplot2)
p <- ggplot(iris, aes(Sepal.Length, Sepal.Width)) +
geom_point() +
theme(strip.text = element_text(angle = 45))
p + facet_wrap(~Species, strip.position = "top")
p + facet_wrap(~Species, strip.position = "left")
p + facet_wrap(~Species, strip.position = "right")
p + facet_wrap(~Species, strip.position = "bottom")
Metadata
Metadata
Assignees
Labels
No labels