Skip to content

geom_bar(stat='identity') has problems with negative values  #560

Closed
@cpsievert

Description

@cpsievert

http://community.plot.ly/t/inversion-negative-values-in-ggplotly/875

d <- data.frame(
    x = LETTERS[1:10], 
    y = -5:4, 
    g = rep(c('A','B'), each = 5)
)

p <- ggplot(data = d, aes(x = x, y = y, fill = g)) +
    geom_bar(stat='identity')
ggplotly(p)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions