I would like to create a kind of histogram using geom_bar(). The bars should have no fill and should not have vertical lines in-between the bars, i.e. a histogram which only displays a fringe around the bars (the border of the bars). Do you have any idea?
Thank you very much! Regards Tobi
example code:
df <- data.frame(x=seq(40,62,2), y=c(0,1,3,5,2,7,9,3,5,1,4,0))
library(ggplot2)
ggplot(data=df, aes(x=x, y=y)) +
geom_bar(stat="identity",width=2,binwidth=.7,fill=NA,colour='black') +
theme_bw()