I have data that represents the start and stop times for each of several
drugs for each of several patients. I would like to display the time on
and off each drug, as a series of horizontal segments something along
the lines of:
segments(x1 = StartDate, y1 = PtNum+DrugNum,
x2 = StopDate, y2 = PtNum + DrugNum)
PtNum and DrugNum would be set up to give appropriate heights. For
example, if PtNum 10 used drugs 1, 4 and 5 at various overlapping times,
part of the plot would look like:
|
15 | +--------------+
14 | +-------------+
13 |
12 |
PtNum + DrugNum 11 | +--+
10 |
=
+---------------------------------->
Date
This would be very easy to do using segment. The complication is, I
would like to incorporate this type of plot info in a previously drawn
graphsheet
(result of guiCreate("ErrorBarPlot",...).
o Is there anyway to incorporate segment output into a previously drawn
"ErrorBarPlot"?
o Is there a counterpart to the segment command that would work in this
context?
e.g., guiCreate("SegmentPlot",...) ???
I am happy to reorganize the data, and have started to try to construct
this plot usign "LinePlot", but it seems much more difficult than it
should be. I've also experimented with guiCreate("Radius",...) but this
seems counter-intuitive, as well.
Thanks for any suggestions -- I'm nearly certain I'm overlooking the
obvious. I'm using S-PLUS 4.5 in Windows 98.
Rob
----
Rob Balshaw, PhD Synectics Health Corporation
balshaw@synectics.bc.ca University of British Columbia
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|