[R] plot question
Gabor Grothendieck
ggrothendieck at myway.com
Mon Apr 12 07:46:40 CEST 2004
plot(1:10)
abline(v=c(3,5,7), col="red")
Linda portman <lindaportman <at> yahoo.com> writes:
:
: I have a variable named "Medicine" which has seven values in date format, on
the following plot, how can I use
: a red line to indicate the time when the medicine was taken on x axis?
:
: The following is my original plot of blood pressure vs. time.
: plot(time, bloodpressure,xlab="Time",ylab="bPress",main="Time VS Blood
Pressure", type="l", xaxt="n")
: r <- as.POSIXct(round(range(Time), "days"))
: axis.POSIXct(1, at=seq(r[1], r[2], by="day"), format="%d-%b")
:
: Thanks a lot!
More information about the R-help
mailing list