Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Usually ggplot() does a
good job of deciding where to put the tick marks, but if
you want to change them, set breaks
in the scale (Figure 8-12):
ggplot(PlantGrowth,aes(x=group,y=weight))+geom_boxplot()ggplot(PlantGrowth,aes(x=group,y=weight))+geom_boxplot()+scale_y_continuous(breaks=c(4,4.25,4.5,5,6,8))