You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the code with ggh4x, the labels are nicely centered in their respective categories, as shown below.
However, the same code used with legendry will cause ticks, as well as tick labels to be (mis)placed to the bottom of their respective categories (for lack of a better word), as shown below.
I was wondering if this behavior of guide_axis_nested() in legendry is intentional or not, and if it is, which argument can be used to place the text in the center of its respective category.
Thanks in advance and best regards!
The text was updated successfully, but these errors were encountered:
Hi, thanks for the report! This appears a duplicate of #61.
The summary of my stance on this is that I'm not going to aim for any sort of coord_flip() compatability.
The coord_flip() function is superseded, and the nested axis works fine if you just swap the x and y aesthetics.
Hello everyone,
I have noticed a difference in behavior of guide_axis_nested() from legendry versus ggh4x when using coord_flip(). Using the below code for reprex.
ggplot(mpg, aes(interaction(cyl, class), hwy)) + geom_boxplot() + scale_x_discrete(guide = guide_axis_nested()) + coord_flip()
When using the code with ggh4x, the labels are nicely centered in their respective categories, as shown below.
However, the same code used with legendry will cause ticks, as well as tick labels to be (mis)placed to the bottom of their respective categories (for lack of a better word), as shown below.
I was wondering if this behavior of guide_axis_nested() in legendry is intentional or not, and if it is, which argument can be used to place the text in the center of its respective category.
Thanks in advance and best regards!
The text was updated successfully, but these errors were encountered: