Hi. I want to plot per vs the frequency of per; I want to count the frequencies, but I want to combine the binwidths of the per's. geom_bar does not support binwidth. What do you suggest? Thank you.
library(ggplot2)
t <- c(0,5,2,5,1,2,0,0,0,1,0,1,1,3)
c <- c(10,16,16,16,10,20,20,20,21,18,6,6,6,22)
per <- t/c
df <- data.frame(cbind(t,c,per))
ggplot(data = df, aes(x = per)) +
geom_bar(stat="count", binwidth=.05) +
xlab(seq(0,1,.1)) +
labs(title = "Frequency", x = "Percent Matches", y = "Frequency")