Skip to content
Prev 138553 / 398506 Next

main title x title and y title with ggplot2

ONKELINX, Thierry <Thierry.ONKELINX <at> inbo.be> writes:
Guillaume,

I had the same problem and found a solution in some forums. Try this:

p<-ggplot(data, aes(x,y,fill)) + geom_point() + scale_x_continuous("your
xlabel") + scale_y_continuous("your ylabel")

p$title<-"your title"

print(p)

Ingo.