Skip to content
Prev 283226 / 398498 Next

Adding text to multiple plots

On Jan 24, 2012, at 11:20 AM, Katarzyna Sawicka wrote:

            
Sorry. I wasn't able to follow that problem statement. Let me ask a  
counter question: Are you aware that the x-values in your plot calls  
are being converted to the numeric values for the dates?

 > as.numeric(Sys.Date())
[1] 15363

So... I (still) think your x-values for 'text' are not matching your x- 
values for 'plot' AND you are not supplying your y-values for 'text'  
in a sensible manner.

 > plot(Sys.Date(), 1)
 > text(x=15363, labels="here is today") # nothing plotted
 > text(x=15363, y=0.8, labels="here is today") # plotted as expected
David Winsemius, MD
West Hartford, CT