Hello!
I've been using ggblanket (a package of ggplot wrapper functions) lately so i can easily create plots, it has been working wonders until recently when I've noticed it was not plotting columns in the correct order (even after arraging the dataset)
For ggplot it's not unusual to plot the X axis using the reorder function, but it doesn't seem to work with ggblanket (! Can't convert a call to a string), if I try to plot an arranged dataset of mtcars it will still plot the order incorrectly, here's an example
mtcars %>%
as_tibble(rownames="cars") %>%
arrange(desc(disp)) %>%
head(5) %>%
ggblanket::gg_col(
x = cars),
y = disp)
At the same time if I use the reorder function on ggplot it goes well as usual:
mtcars %>%
as_tibble(rownames="cars") %>%
arrange(desc(disp)) %>%
head(5) %>%
ggplot(aes(x = reorder(cars,-disp),
y = disp,
stat = "identity")) +
geom_col()