Re: [R] ggplot 'annotate problem' again.

2010-02-28 Thread smu
Hi, I suggest to use geom_text to add multiple labels. Put all the information needed by for your labels in a dataframe: lab = data.frame(x=namposts+2.5, y = temprange[2], label= mlabs) and add them to the plot: p + geom_text(data=lab,aes(x,y,label=label), size=2.5,colour='black', hjust =

[R] ggplot 'annotate problem' again.

2010-02-28 Thread John Kane
I had a problem annotating a graph last year ( see http://n4.nabble.com/Putting-names-on-a-ggplot-td907158.html#a907158 for the discussion) Stefan (smu) provided a solution using annotate(). However I apparently did not update the graph file and,now, when I go back to the thread and try to use