Skip to content

feature request: geom_arc_bar with categorical axis #189

@romainFr

Description

@romainFr

For now geom_arc_bar only understands x0 and y0 as numeric (on a continuous axis). Would it be too strange to have it working with categorical axis?
Minimum example:

catpie <- data.frame(x=c("A","B","A","C"),y=c("1","2","2","1"),v1=c(0.5,0.8,0.6,1))
ggplot(catpie) + geom_arc_bar(aes(x0=x,y0=y,r0=0,r=0.5,amount=v1),stat="pie") + scale_x_discrete()

Error: Discrete value supplied to continuous scale
In addition: Warning messages:
1: In Ops.factor(paths$x, paths$x0) :+not meaningful for factors
2: In Ops.factor(paths$y, paths$y0) :+not meaningful for factors

And thanks for all the great work !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions