Skip to content

coord_radial() and coord_polar() are not connecting the start and end points anymore (v3.5.1) #5913

Closed
@dafxy

Description

@dafxy

This was working in older ggplot versions, but now it is not working anymore on version 3.5.1. The racial coordinate should connect the ending and starting points. Using polar coordinates instead of radial also does not work.

set.seed(10)
df = data.frame(x = 1:10,
                y = runif(10),
                g = sample(c('A', 'B'))
                )
g = (
    df
    %>% ggplot(.)
    + geom_polygon(aes(x=x, y=y, color=g, fill=g), alpha=.5)
    + coord_radial()
)
g

Screenshot from 2024-05-28 13-18-29


g = (
    df
    %>% ggplot(.)
    + geom_polygon(aes(x=x, y=y, color=g), alpha=.5, fill=NA)
    + coord_radial()
)
g

Screenshot from 2024-05-28 13-18-48

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions