Skip to content
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

When start is specified, r_axis_inside sometimes defaults to TRUE, despite it being a full circle #5750

Closed
davidhodge931 opened this issue Mar 5, 2024 · 1 comment · Fixed by #5752
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@davidhodge931
Copy link

Not sure if this is unintended behaviour, or a documentation issue...
image

library(palmerpenguins)
library(tidyverse)

penguins |>
  ggplot() +
  geom_point(
    aes(x = flipper_length_mm, 
        y = body_mass_g,
        col = species)) +
  theme_classic() +
  coord_radial(start = 90)
#> Warning: No appropriate placement found for `r_axis_inside`.
#> ℹ Axis will be placed at panel edge.
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).

Created on 2024-03-06 with reprex v2.1.0

@teunbrand
Copy link
Collaborator

This is a bug where c(90, 90 + 2 * pi) %% (2 * pi) gets normalised to have zero range.

@teunbrand teunbrand added the bug an unexpected problem or unintended behavior label Mar 6, 2024
@teunbrand teunbrand added this to the ggplot2 3.5.1 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants