Skip to content

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6692.

The problem was #5789 skipping too eagerly.

Reprex from issue:

devtools::load_all("~/packages/ggplot2/")
#> ℹ Loading ggplot2

test <- tibble::tibble(bin = seq(3), count = c(23,22,10))

ggplot(test, aes(x = bin, y = count))+
  geom_col()+
  geom_text(
    aes(label = round(count, 2)),
    position = position_stack(vjust = 0.5)
  )

Created on 2025-10-10 with reprex v2.1.1

@teunbrand teunbrand added this to the ggplot2 4.0.1 milestone Oct 10, 2025
Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teunbrand teunbrand merged commit ec58f51 into tidyverse:main Oct 20, 2025
13 checks passed
@teunbrand teunbrand deleted the fix_stack_vjust branch October 20, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vjust is ignored in position_stack() in 4.0.0

2 participants