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
For ggplot, I often want to make my labels use mathematical expressions, and the most straightforward way to do this is to modify the underlying factor levels.
However, this currently fails with an error because my_units is not a character vector.
x<-forcats::lvls_revalue(x, my_units)
I recognize why there is value in forcing levels to be character vectors...but perhaps there could be another function (lvls_revalue2?) that is not as strict, and is basically just a pipe-friendly alias for levels<-?
The text was updated successfully, but these errors were encountered:
For
ggplot
, I often want to make my labels use mathematical expressions, and the most straightforward way to do this is to modify the underlying factor levels.This works exactly as expected:
However, this currently fails with an error because
my_units
is not a character vector.I recognize why there is value in forcing levels to be character vectors...but perhaps there could be another function (
lvls_revalue2
?) that is not as strict, and is basically just a pipe-friendly alias forlevels<-
?The text was updated successfully, but these errors were encountered: