shosaco / vistime

Pretty timelines in R.
https://shosaco.github.io/vistime
GNU General Public License v3.0
168 stars 11 forks source link

Adding a gg_visitime to a ggplot object #26

Open FarrelBuch opened 2 years ago

FarrelBuch commented 2 years ago

gg_visitime makes it very easy to depict medications over time. I want to use gg_visitime to create a graphic depiction of a patient's medications (when they were on what) and lay it above a geom_point of their blood pressure. How can I add the two objects together such that they share the x-axis of time?

srwis commented 1 year ago

I am also interested In a similar combination of geom_point and gg_visitime if this ever gets revisited.

shosaco commented 1 year ago

Dear @FarrelBuch,

can you share a final picture of the desired result? That would be helpful. I imagine you would then have 2 different y axes, right?

Thanks sandro