0
votes
ggplot(df1, aes(x= seg.mean)) +
    geom_histogram(binwidth=.6, colour="black", fill="white") 
    geom_vline(aes(xintercept=mean(seg.mean, na.rm=T)),  
    color="red", linetype="dashed", size=0.5)   

How can i increase the break points of x axis, for eg range of x axis form -5 to 5, with an interval of 0.5

enter image description here

1

1 Answers

2
votes

Use scale_x_continuous: +scale_x_continuous(breaks=seq(-5,5,by=0.5))