-
Notifications
You must be signed in to change notification settings - Fork 635
Closed
Labels
Description
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/#/