ddediu / AdhereR

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

Show legend box outside of the plot area. #195

Closed mumbarkar closed 1 year ago

mumbarkar commented 1 year ago

I am trying to visualize patients medication history over a period of 3 years and when I used entire FUW duration I was not able to see some treatment patterns behind the legend box.

Could you please help me out to plot legend box outside of the plot area?

Thanks in advance.

Mahesh.

mumbarkar commented 1 year ago

I got the solution for this one.

thanks.

ddediu commented 1 year ago

Dear Mahesh, indeed, the solution you found is the intended solution for this case: this is why I implemented the do.not.draw.plot parameter starting with v0.8.0. However, I am not sure what the best way to publish your solution would be -- maybe best if you yourself do it as a small script? Best wishes, Dan