You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hiya! Thanks so much for such an incredible package. I use ggtext (and cowplot) on a regular basis! I ran into a problem keeping the coloring for facet labels when I use the switch argument in facet_grid() as outlined [here]. Do you know what might be causing this? Reprex below:
# Switching the axes to be on the left side removes the coloringbase_plot+
facet_grid(species~island,
scales="free_y",
switch="y",
labeller= labeller(
.rows= as_labeller(~glue::glue("<span style='color: {penguin_colors};'> {.x} </span>")),
.cols= as_labeller(~glue::glue("Island of {.x}"))
)
)
#> Warning: Removed 2 rows containing missing values (geom_point).
This can be fixed by setting the strip.text.y.left theme element. It's an issue of theme settings not inheriting the 'richer' element. See also tidyverse/ggplot2#5457.
Hiya! Thanks so much for such an incredible package. I use ggtext (and cowplot) on a regular basis! I ran into a problem keeping the coloring for facet labels when I use the
switch
argument infacet_grid()
as outlined [here]. Do you know what might be causing this? Reprex below:Created on 2022-02-26 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: