[R] Title and labelos in ggplot2

Ido M. Tamir tamir at imp.univie.ac.at
Wed Sep 12 15:12:32 CEST 2007


x and y axis labels changing in ggplo2:

p <- ggplot(d03, aes(x=cs,y=taille)) + geom_hline(data=temp.df) + 
geom_boxplot() + facet_grid(.~sexe) 

I had a similar question not too long ago. Try:

p + scale_x_discrete("new label x") + scale_y_continuous("new label y") 

best wishes
ido



More information about the R-help mailing list