Message-ID: <B9194C2C-AE0C-4BED-BF89-74289333E5AD@comcast.net>
Date: 2012-08-01T17:38:22Z
From: David Winsemius
Subject: add text to a plot, create character labels
In-Reply-To: <CAF=8oOZd9Gd3=TPfZqyTmtMzpu08U9-4QGgnSOxsMnrb5sB6vA@mail.gmail.com>
On Aug 1, 2012, at 9:04 AM, Yolande Tra wrote:
> Hi,
>
> I was trying to run the following, where the labels on the x axis
> are dates
> and need to be converted to characters. It did not work. Any help
> would be
> appreciated. Thanks.
>
>>
> text(axTicks(1),par("usr)[3]
There is an unmatched quote in the par() call. Adding spaces after
commas in argument lists may help you see these sorts of errors in the
future.
> -2
> ,srt
> =
> 45
> ,adj
> =
> 1
> ,labels
> =as.character(c("2008-01-08","2008-08-10","2008-08-22","2008-09-03",
> "2008-09-15")), xpd=T, cex=0.8)
> Error: unexpected numeric constant in
> "text(axTicks(1),par("usr)
> [3]-2,srt=45,adj=1,labels=as.character(c("2008"
> Yolande
>
>
--
David Winsemius, MD
Alameda, CA, USA