Try as I might, I can't seem to get qplot to print an x axis label when using facets. Reproducible toy example (requires diamonds dataset which I think comes with ggplot2):
dsmall <- diamonds[sample(nrow(diamonds), 100), ]
qplot(color,price,data=dsmall ,facets=cut~.,xlab="TEST")
How do I add an x axis label to this?
dput()
the data used or make up some dummy data? - Gavin SimpsonsessionInfo()
to your Q. Are you running an up-to-date version of ggplot2? - Gavin Simpsonxlab
gets displayed correctly. - Andrie