We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have developed a new stat for ggplot2 allowing to compute proportions according to a specified denominator.
ggplot2
For example, it allows to compute and to display column proportion on a bar chart with position = fill.
position = fill
ggplot(as.data.frame(Titanic)) + aes(x = Class, fill = Survived, weight = Freq) + geom_bar(position = "fill") + geom_text(aes(by = Class), stat = "prop", position = position_fill(.5))
will produce
Current code is visible here: https://github.com/larmarange/JLutils/blob/master/R/stat_prop.R
Do you think that such stat could be a good addition for ggalt? Or is it out of the scope of your package?
ggalt
Best regards
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have developed a new stat for
ggplot2
allowing to compute proportions according to a specified denominator.For example, it allows to compute and to display column proportion on a bar chart with
position = fill
.will produce
Current code is visible here: https://github.com/larmarange/JLutils/blob/master/R/stat_prop.R
Do you think that such stat could be a good addition for
ggalt
? Or is it out of the scope of your package?Best regards
The text was updated successfully, but these errors were encountered: