Skip to content

Commit 78125e0

Browse files
authored
Set vjust = 1 for axis.title.y.right. (#5629)
* change right axis title vjust * accept visual changes * Add news bullet
1 parent 9c15f81 commit 78125e0

16 files changed

+19
-16
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ stats, facets and coords (#3329, @teunbrand)
137137
`guides(x = guide_axis(position = "top"))` will display the title at the
138138
top by default (#4650).
139139

140+
* The default `vjust` for the `axis.title.y.right` element is now 1 instead of
141+
0.
142+
140143
* Unknown secondary axis guide positions are now inferred as the opposite
141144
of the primary axis guide when the latter has a known `position` (#4650).
142145

R/theme-defaults.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ theme_grey <- function(base_size = 11, base_family = "",
164164
axis.title.y.right = element_text(
165165
angle = -90,
166166
margin = margin(l = half_line / 2),
167-
vjust = 0
167+
vjust = 1
168168
),
169169

170170
legend.background = element_rect(colour = NA),
@@ -569,7 +569,7 @@ theme_test <- function(base_size = 11, base_family = "",
569569
axis.title.y.right = element_text(
570570
angle = -90,
571571
margin = margin(l = half_line / 2),
572-
vjust = 0
572+
vjust = 1
573573
),
574574

575575
legend.background = element_rect(colour = NA),

tests/testthat/_snaps/coord-map/coord-map-switched-scale-position.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/coord-polar/secondary-axis-ticks-and-labels.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/coord-transform/sec-axis-with-coord-trans.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/coord_sf/coord-sf-with-custom-guides.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/guides/guide-axis-customization.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/guides/guide-titles-with-coord-trans.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/guides/logtick-axes-with-customisation.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/guides/position-guide-titles.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/guides/stacked-axes.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/guides/stacked-radial-axes.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/sec-axis/sec-axis-monotonicity-test.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/sec-axis/sec-axis-with-division.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/theme/axes-styling.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/testthat/_snaps/theme/ticks-length.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)