Hello all,

I can't seem to figure out how to format a date as a title. I have
something like this:

plot(x=1:10, y=runif(10,1,18), main=paste(as.Date("2011-05-03",
format="%Y-%m-%d")))

## When I would really like this
plot(x=1:10, y=runif(10,1,18), main=paste("May-03-2011"))

## I thought to try this but that produces an NA.
plot(x=1:10, y=runif(10,1,18), main=paste(as.Date("2011-05-03",
format="%Y-%b-%d")))

How do folks usually accomplish something like this?

Thanks so much in advance!

Sam

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to