-
Notifications
You must be signed in to change notification settings - Fork 53
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
Dotplot bar chart? #1283
Comments
I see, As a workaround you can have a synthetic dataset containing "observations" according to the counts by category and then use If we had "patterns" like in ggplot2 : Patterns and Gradients then "polka dot" pattern would also do I guess. |
To be honest even after your pointers I was not able to create the chart that I wanted. I got close but the dots were very, very small and using dotsize would just make them overlap instead of expand upwards. |
You can fix the overlapping by adjusting the |
My best two attempts, still not quite what I want.Prepare the data
Attempt with
|
I see, However, this can be done using just
The |
Or better 0-based maybe:
|
Is there any way to create a chart similar to this?
Bar charts are one of the most used chart types and having alternatives for them is great. Currently Let's Plot has
geom_lollipop
but DotPlot bars are another great alternative, especially when the measured value is an integer. Counting number of records is probably the best use case for this.I tried creating them using
geom_dotplot
andgeom_ydotplot
but was not able to do it.If it is not currently possible I believe it would be a great addition.
The text was updated successfully, but these errors were encountered: