[R] creating a plot
Hi, I have a time series plot to produce, yet I want the x-axis to be labelled with dates (stored on another array) and not with observation numbers. Can anyone suggest me how? Thanks. Konrad __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] creating a plot
--- Konrad Banachewicz [EMAIL PROTECTED] wrote: Hi, I have a time series plot to produce, yet I want the x-axis to be labelled with dates (stored on another array) and not with observation numbers. Can anyone suggest me how? Thanks. Konrad Try checking out http://www.medepi.net/data/wnv/index.html at bottom of page. Tomas = Tomas Aragon, MD, DrPH, Director Center for Infectious Disease Preparedness UC Berkeley School of Public Health 1918 University Ave., 4th Fl., MC-7350 Berkeley, CA 94720-7350 http://www.idready.org __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] creating a plot legend
Thanks so much to all for their help. I was wondering if there was an easy way to create legends in R plots. For example, if I am plotting lines for subjects in a longitudinal design of the outcome by time for two different treatments, where the individual for treatment 1 are plotted in one color, and the others are plotted in another. What I would like to do is, for example, have a little legend in the bottom right corner which puts the line color next to the treatment name. I guess I could start messing with magins and try to draw text at given coordinates within the margin, but thought I might ask if anyone else has had success with a simpler solution. Thanks so much again, Jason __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] creating a plot legend
On Mon, 24 Feb 2003, Jason Bond wrote: Thanks so much to all for their help. I was wondering if there was an easy way to create legends in R plots. For example, if I am plotting lines for subjects in a longitudinal design of the outcome by time for two different treatments, where the individual for treatment 1 are plotted in one color, and the others are plotted in another. What I would like to do is, for example, have a little legend in the bottom right corner which puts the line color next to the treatment name. I guess I could start messing with magins and try to draw text at given coordinates within the margin, but thought I might ask if anyone else has had success with a simpler solution. Thanks so much again, The legend() function. As a meta-answer I would also note that help.search(legend) would have told you this. -thomas __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help