-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ViewScale's break_positions() now returns pre-transformed positions #5029
Comments
Perhaps part of the problem is that p$coordinates$trans$y
#> Transformer: log-2 [1e-100, Inf]
b$layout$panel_params[[1]]$y$scale$trans
#> Transformer: identity [-Inf, Inf] |
* Close #2193: Accomodate breaking changes in ggplot2 3.4.0 * Line-based theme elements now also use linewidth over size * Support GeomBoxplot linewidth as well * Support GeomPolygon linewidth as well * Support GeomBar linewidth as well * Handle more linewidth theme changes * Use both linewidth and size for sf * geom_area() now has a different default for stat * Approve differences due to changes in legend order * Convert borderwidth correctly on colorbar * Refactor/consolidate core logic * Approve new sf baseline * Fix sf issue * Approve new sf baseline * break_positions() no longer contains post-transformed values tidyverse/ggplot2#5029 * Add comment; prefer dimension() of the scale over .range
Since this is about I'm not immediately sure if my guess is right or wrong, and what's the supposed behavior here. Let me think... |
The preferred interface for accessing key values in guides is through |
Consider the following plot
If I build it and look at the
$break_positions()
of the y-axis, they don't seem to consider the coordinate transformation (prior to 3.4.0, they did):Thankfully, the
y.range
field has the post-transformed values. However, it'd be nice ifbreak_positions()
yielded the same result, especially considering thaty.major
was silently dropped in recent releases(#3436)The text was updated successfully, but these errors were encountered: