I'am doing histogram with ggplot.
p <- ggplot(TotCalc, aes(x=x,y=100*(..count../sum(..count..)))) +
xlab(xlabel) + ylab(ylabel) +
geom_histogram(colour = "darkblue", fill = "white", binwidth=500)
my x is between 2 and 6580 and I have 2600 data.
I want to plot one histogram with different binwidth. Is it possible?
For example, I want to have 8 bars, with width like this:
c(180,100,110,160,200,250,1000,3000)
How can I do it?
