Skip to content

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #6701.

Essentially, it undoes 66e37cb in favour of documenting the behaviour.

@teunbrand teunbrand added this to the ggplot2 4.0.1 milestone Oct 20, 2025
@teunbrand
Copy link
Collaborator Author

TODO:

  • Try to respect aspect ratios when provided

@teunbrand
Copy link
Collaborator Author

Reprex from issue, note the 1:1 aspect ratio is preserved.

devtools::load_all("~/packages/ggplot2/")

data.frame(cat = c("A", "B", "C"), value = c(25, 40, 60)) |>
  ggplot(aes(x = NA, y = value, fill = cat)) +
  geom_col(position = position_stack()) +
  coord_radial(theta = "y", expand = FALSE) +
  theme(panel.widths = unit(50, "mm"))

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

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.

Warning when combining coord_radial() and absolute theme(panel.widths)

1 participant