| To: | "TKT \(Thomas Klitgaard\)" <tkt@novonordisk.com> |
|---|---|
| Subject: | Re: Invidual scaling when using xyplot - overwriting ylim in a panel |
| From: | "Andreas Krause" <akrause@Pharsight.com> |
| Date: | Mon, 17 Dec 2007 01:29:51 -0800 |
| Cc: | <s-news@lists.biostat.wustl.edu> |
| In-reply-to: | <96135542F393864D906064CB582EAC9B04BA6579@EXDKBA020.corp.novocorp.net> |
| References: | <96135542F393864D906064CB582EAC9B04BA6579@EXDKBA020.corp.novocorp.net> |
| Thread-index: | Acg+MwjROx+v3UEtRpmK8Z24SwOMtgCWE0og |
| Thread-topic: | [S] Invidual scaling when using xyplot - overwriting ylim in a panel |
|
An easy way out is to let S-Plus determine the axis
ranges, and that means having the desired range in the
data.
Remember that a point (x, y) does not get plotted if x or y
is NA, but the data is still used to determine axis ranges.
The solution is then to append your y data and
make the corresponding x missing.
If I understand your description correctly, the code should
be similar to this:
alldata.new <- alldata
alldata.new$DV <-
c(alldata$DV, alldata$IPRE, alldata$PRED)
alldata.new$TIME <- c(alldata$TIME, rep(NA,
2*nrow(alldata)))
xyplot(..., data="">
Andreas Krause From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of TKT (Thomas Klitgaard) Sent: Friday, December 14, 2007 10:24 AM To: s-news@lists.biostat.wustl.edu Subject: [S] Invidual scaling when using xyplot - overwriting ylim in a panel Dear all, As part a modelling problem that I'm currently
working on, I need to make plots of Group PK and PD generally in the same range, but
the between-ID varation in Ymax is I would like overwrite/set, for each panel, ylim to
the max(DVgroupPK,IPREgroupPK,PREDgroupPK, Thanks in advance! Thomas Klitgaard xyplot(DV~TIME|ID,data="">
panel.superpose(AllResults[subscripts,]$TIME,log10(AllResults[subscripts,]$IPRE),type="l",lty=4,subscripts,...);
mtext(side=3,line=-1,cex=.8,adj=.95,paste("Dose
(ug/kg)=",AllResults[subscripts,]$DOSE))
main="PK (blue) and PD (red) vs. time (full line: population mean, dashed
line: individual mean)", |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Modifying boxes when plotting a timeSeries, eggraid |
|---|---|
| Next by Date: | Re: Invidual scaling when using xyplot - overwriting ylim in a panel, TKT (Thomas Klitgaard) |
| Previous by Thread: | Invidual scaling when using xyplot - overwriting ylim in a panel, TKT (Thomas Klitgaard) |
| Next by Thread: | Re: Invidual scaling when using xyplot - overwriting ylim in a panel, TKT (Thomas Klitgaard) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |