ddediu / AdhereR

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

Whitespace with show.legend = TRUE #200

Open dffyfe opened 1 year ago

dffyfe commented 1 year ago

Hi Dan,

Hope all is well!

I've noticed the whitespace seems excessive when plotting with a legend.

I think this line in plotting.R

dims.total.width <- (dims.plot.x + max(dims.plot.width, dims.legend.width));

should be

dims.total.width <- max(dims.plot.x + dims.plot.width, dims.legend.width);

ddediu commented 1 year ago

Thanks, I'll look into it :) I don't remember why I did it this way (might have had a reason ?) Dan