We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(previously: #4032 (comment))
Facet labels that are combined with .multi_line = FALSE don't show up as parsed when using label_parsed:
.multi_line = FALSE
label_parsed
library("ggplot2") dat <- data.frame(x = 1, y = 1, a = "a", b = 1) ggplot(dat, aes(x, y)) + geom_point() + facet_grid( ~ a + b, labeller = labeller( a = c("a" = "a^2"), .default = label_parsed, .multi_line = FALSE ) )
Created on 2020-06-22 by the reprex package (v0.3.0)
Compare to .multi_line = TRUE, which looks as it should:
.multi_line = TRUE
ggplot(dat, aes(x, y)) + geom_point() + facet_grid( ~ a + b, labeller = labeller( a = c("a" = "a^2"), .default = label_parsed, .multi_line = TRUE ) )
One issue is the .multi_line argument doesn't get passed along here:
.multi_line
ggplot2/R/labeller.r
Line 440 in 7d05fa3
However changing that line alone makes things worse:
ggplot(dat, aes(x, y)) + geom_point() + facet_grid( ~ a + b, labeller = labeller( a = c("a" = "a^2"), .default = label_parsed, .multi_line = FALSE ) )
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
(previously: #4032 (comment))
Facet labels that are combined with
.multi_line = FALSE
don't show up as parsed when usinglabel_parsed
:Created on 2020-06-22 by the reprex package (v0.3.0)
Compare to
.multi_line = TRUE
, which looks as it should:One issue is the
.multi_line
argument doesn't get passed along here:ggplot2/R/labeller.r
Line 440 in 7d05fa3
However changing that line alone makes things worse:
The text was updated successfully, but these errors were encountered: