Problem in ggplot2 3.2.1
Closed this issue · 2 comments
raonirosa commented
In this version of ggplot2, when I used:
ggplot (mydf,
aes (x = X, y = Y))+
geom_boxplot()+
facet_grid(Z ~., scales = list (y = scale_y))
Having scale_y a list with names of each facet painel (as in example code), I had this error message:
Error in match.arg(scales, c("fixed", "free_x", "free_y", "free")) :
'arg' must be NULL or a character vector
zeehio commented
Please use facet_grid_sc
instead of facet_grid
if you want to use the custom scales from facetscales
.
raonirosa commented
Works perfectly, thanks!