-
Notifications
You must be signed in to change notification settings - Fork 77
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
problem with ggplot histograms #702
Comments
the example code is here: https://github.com/ploomber/doc/blob/example/examples/quickstart/notebook.ipynb you can run the notebook end-to-end, then click on the "plot" button that appears at the end |
@yafimvo: if you can share your thoughts on why we have this issue, please do. it'll help @bbeat2782 |
@edublancas This happens due to 2 reasons
The fill attribute creates a stacked bar, which means each bar is divided into X segments that represent different subcategories of the overall data. In these cases, it's The width of each bar is dynamic. In these cases, the bars are wide and overlap each other. Since we don't have a border, it looks a bit weird. I added a border to the bars I changed the width of the bars There is an option to show 2 histograms on one chart by replacing this:
with this:
The problem is that the difference between the X values of these fields is big which makes it difficult to understand the graph |
thanks for sharing your feedback @yafimvo. @bbeat2782 the best way to validate this is to create the same plots using the same data in ggplot (in R) , the interface should be pretty similar. |
Oh, never thought of this way to validate the plots. Thanks. |
Acceptance Criteria
|
there's some error in the ggplot histograms when using the fill option:
from what I understand, fill should display one histogram on top of another with different colors. since these are histograms, they should not have vertical color breaks (beginning from the bottom) where they start with color A, then color B and then they are color A again. since the value in the Y axis is a count. see: https://stackoverflow.com/questions/22216350/overlay-histograms-in-r
The text was updated successfully, but these errors were encountered: