ddediu / AdhereR

Computation of adherence to medications from Electronic Healthcare Data in R
26 stars 6 forks source link

Add mapping functions for plotting #89

Closed ddediu closed 5 years ago

ddediu commented 5 years ago

Provide functions/data structures that allow the adding of new graphical elements to a CMA plot.

These must be general enough to deal with patient alignment, resizing, sliding windows etc, but also easy enough.

One idea: plot creates/returns a data structure where for each plotted event we give the (x,y) coordinates of the event start and end + the (x,y) coordinates of the entire plotting are, all of these in the plotting coordinate system.

Note: ideally, this should also work for SVG.

ddediu commented 5 years ago

Done: now one can map coordinates to the plot (both for base and SVG)