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
this is a suggestion for improving esquisse (which I love and teach to Nanterre students) with a new feature.
One common task in barplots and other graphs involving categorical variables is to reorder them. The package forcats offers some solutions that could be developed in esquisse, in particular fct_infreq(), fct_rev() and fct_reorder().
Three examples:
ggplot(mpg) +
aes(x = fct_infreq(fl), fill = drv) +
geom_bar()
ggplot(mpg) +
aes(x = fct_rev(fct_infreq(fl)), fill = drv) +
geom_bar()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
this is a suggestion for improving esquisse (which I love and teach to Nanterre students) with a new feature.
One common task in barplots and other graphs involving categorical variables is to reorder them. The package forcats offers some solutions that could be developed in esquisse, in particular fct_infreq(), fct_rev() and fct_reorder().
Three examples:
ggplot(mpg) +
aes(x = fct_infreq(fl), fill = drv) +
geom_bar()
ggplot(mpg) +
aes(x = fct_rev(fct_infreq(fl)), fill = drv) +
geom_bar()
ggplot(iris) +
aes(y = Sepal.Width, color = fct_reorder(Species, Sepal.Width)) +
geom_boxplot()
I believe that these three alone could permit to account for 80% of all needs.
Best, and keep going with this great software!
Dario
Beta Was this translation helpful? Give feedback.
All reactions