[R] Plotting patient drug timelines using ggplot2 (or some other means) -- Help!!!
pjmiller_57 at yahoo.com
Tue Mar 27 22:03:30 CEST 2012
Hello Dr. Winsemius,
Not sure how or if the use of NAs you describe applies to my case. I'll go back to this again when the ggplot2 book arrives. It may be that this will provide a helpful insight then.
--- On Fri, 3/23/12, David Winsemius <dwinsemius at comcast.net> wrote:
> From: David Winsemius <dwinsemius at comcast.net>
> Subject: Re: [R] Plotting patient drug timelines using ggplot2 (or some other means) -- Help!!!
> To: "Paul Miller" <pjmiller_57 at yahoo.com>
> Cc: "R. Michael Weylandt" <michael.weylandt at gmail.com>, "Petr PIKAL" <petr.pikal at precheza.cz>, "Bert Gunter" <gunter.berton at gene.com>, r-help at r-project.org
> Received: Friday, March 23, 2012, 1:23 PM
> On Mar 23, 2012, at 2:15 PM, Paul Miller wrote:
> > Hi Michael and Petr,
> > Apologize for my failure to grasp what you were saying.
> My code is up and running now.
> > Noticed what might be a shortcoming of my ggplot code.
> I have some instances where a drug starts and stops and then
> starts and stops again. It looks like my graphs show just a
> single unbroken line segment though.
> Put in NA entries at times you do not want plotted. Not sure
> exactly how that gets handled in ggplot but since plotting
> nothing was the "usual" behavior in base and lattice
> graphics, I would think that would have gotten carried
> > I ordered Hadley Wickham's ggplot2 book earlier today.
> So hopefully I'll be able to figure that out myself once the
> book arrives.
> > Thank you Michael, Petr, and Bert for your help with
> this. Thanks especially to Michael for patiently answering
> all my questions over the last day or so.
> > Paul
> David Winsemius, MD
> West Hartford, CT
More information about the R-help