-
Notifications
You must be signed in to change notification settings - Fork 627
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
Grouped boxplot data not centred on xaxis ticks, looses boxgap argument, and wont resize with subplots #1484
Comments
I have a similar / the same issue here:
Is there a workaround for this problem? I would have expected that |
I'm having the same problem. The code snippet provided by @fabbra is a good example. It's interesting to note that when using plotly express w/ facet rows/cols, the boxplots are grouped properly. I haven't had a chance to dig into this yet, so I'm not sure why. |
Hi, I know this post is a bit old but I struggled with the same problem. The solution was to put the boxes I wanted aligned into the same "offsetgroup". Using Fanbras' code:
|
Is there a solution for the error in plotly express using |
Still seeing this issue where grouped boxplots are being offset when two plots are combined with subplots. Because I'm working with tibbles, I don't see how I can apply the offset group suggested previously. Also, I need to be working with just plotly and not ggplotly, due to speed the plots need to be rendered at. Here is a simplified version of my code:
|
Hi @cpsievert!
Here after your Shiny webinar, great stuff!
I'm having issues with the boxplot data aligning with x-axis tick marks in subplots. Please see below:
Without subplots, everything looks great:
Adding two horizontal subplots:
Boxplot groups shift off the centre of the xaxis ticks, and the boxgap argument becomes irrelevant:
Enlarging this plot does not work at all (cuts off the data at the original subplot width and height, yikes!):
Interestingly, with 3 horizontal subplots, the middle plot data is centered around ticks, but the outer plots are even further away (and the boxgaps are worse):
Just wondering if you have any ideas / suggestions?
Thank you!
The text was updated successfully, but these errors were encountered: