Skip to content

stat_bin should handle a number of bins in addition to binwidth and breaks #102

@jiho

Description

@jiho

Use case: when plotting the histograms of several variables at once, the user wants some control over the fineness of the breaks but cannot provide breaks of binwidth because the units of the variables are very different.

library(ggplot2)
d = data.frame(id=1:100, a=runif(100), b=runif(100)*20, c=runif(100)-10)
d = melt(d, id="id")
ggplot(d) + geom_bar(aes(x=value)) + facet_wrap(~variable, scales="free")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions