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
A bit of a niche issue, the plotting works fine, and the factor ordering is also retained, but I signal it nevertheless.
library(ggplot2)
df<-mtcars|>dplyr::mutate(
dplyr::across(c(gear, carb), ordered)
)
df|>
ggplot(aes(mpg, wt)) +
geom_point() +
facet_grid(
vars(gear), vars(carb),
margins=TRUE
)
#> Warning: Combining variables of class <ordered> and <factor> was deprecated in ggplot2#> 3.4.0.#> ℹ Please ensure your variables are compatible before plotting (location:#> `reshape_add_margins()`)#> This warning is displayed once every 8 hours.#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was#> generated.#> Warning: Combining variables of class <factor> and <ordered> was deprecated in ggplot2#> 3.4.0.#> ℹ Please ensure your variables are compatible before plotting (location:#> `reshape_add_margins()`)#> This warning is displayed once every 8 hours.#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was#> generated.
A bit of a niche issue, the plotting works fine, and the factor ordering is also retained, but I signal it nevertheless.
Created on 2025-05-26 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: