| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Last question about plot (and NA) |
| From: | Tristan Lorino <tristan.lorino@lcpc.fr> |
| Date: | Fri, 10 Mar 2006 14:56:11 +0100 |
| In-reply-to: | <ef09a721.96524e12.81a0400@po-d.temple.edu> |
| Organization: | LCPC |
| References: | <ef09a721.96524e12.81a0400@po-d.temple.edu> |
| Reply-to: | Tristan Lorino <tristan.lorino@lcpc.fr> |
Thank you for your help. These days, I spend a lot of time on SPlus, so... I hope this will be my last question before a long time! I would like 2 plots on the same graphic: > x_data.frame(u=c(1,2,3,4,5),v=c(5,4,9,7,4),w=c(2,NA,7,NA,3)) > plot(x$u,x$v,ylim=c(1,10),type="l") > points(x$u,x$w,col=8,type="p") But I would like to have 2 lines, instead of one line (x$v) and 3 points (x$w). If I write > points(x$u,x$w,col=8,type="l") the second plot is not plotted -- because of NA. How can I resolve this problem? Thank you, Tristan Lorino -- Laboratoire Central des Ponts et Chaussées [Division ESAR ? Section AGR] Route de Bouaye BP 4129 44341 Bouguenais Cedex France Tél. 33 (0)2 40 84 56 18 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Help! repeating a within-subjects aov with lme, Rob Campbell |
|---|---|
| Next by Date: | Re: Last question about plot (and NA), Dimitris Rizopoulos |
| Previous by Thread: | Re: Graphic problem, Richard M. Heiberger |
| Next by Thread: | Re: Last question about plot (and NA), Dimitris Rizopoulos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |