Skip to content
New issue

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

Fix #936: Way to calculate proportion of points with same coordinate #940

Merged
merged 7 commits into from
Nov 22, 2023
Prev Previous commit
Next Next commit
Update docstrings, add info about ..sumprop.. and ..sumpct..
  • Loading branch information
ASmirnov-HORIS committed Nov 22, 2023
commit ed9c59e7fc5c61dd53630bf981cd011b09ecdc4a
4 changes: 4 additions & 0 deletions python-package/lets_plot/plot/geom.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,8 @@ def geom_bar(mapping=None, *, data=None, stat=None, position=None, show_legend=N
- ..sum.. : total number of points with same x-axis coordinate.
- ..prop.. : groupwise proportion.
- ..proppct.. : groupwise proportion in percent.
- ..sumprop.. : total proportion, i.e. ratio of total number of points with same x-axis coordinate to the total number of points in the data.
- ..sumpct.. : total proportion in percent.

`geom_bar()` understands the following aesthetics mappings:

Expand Down Expand Up @@ -6172,6 +6174,8 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
- ..sum.. : total number of points with same (x,y) coordinate.
- ..prop.. : groupwise proportion.
- ..proppct.. : groupwise proportion in percent.
- ..sumprop.. : total proportion, i.e. ratio of total number of points with same (x,y) coordinate to the total number of points in the data.
- ..sumpct.. : total proportion in percent.

`geom_pie()` understands the following aesthetics mappings:

Expand Down