Skip to content

coord_polar - pie plots not implemented #2004

@danton267

Description

@danton267

coord_polar is not implemented

df <- data.frame(
  group = c("Male", "Female", "Child"),
  value = c(25, 25, 50)
  )

bp<- ggplot(df, aes(x="", y=value, fill=group))+
geom_bar(width = 1, stat = "identity")
pie <- bp + coord_polar("y", start=0)


p <- ggplotly(pie)

results in: https://chart-studio.plotly.com/~danton267/1513/#/

data <- data.frame(
  group=LETTERS[1:5],
  value=c(13,7,9,21,2)
)

# Basic piechart
p <-ggplot(data, aes(x="", y=value, fill=group)) +
  geom_bar(stat="identity", width=1) +
  coord_polar("y", start=0)


p <- ggplotly(p)

results in: https://chart-studio.plotly.com/~danton267/1515/#/

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions