daniel1noble / orchaRd

Extending the Orchard Plot for Meta-analysis
https://daniel1noble.github.io/orchaRd/
11 stars 6 forks source link

Twig.size changes mean point size, not prediction interval #59

Closed CReemts closed 6 months ago

CReemts commented 6 months ago

I am using orchard_plot to create graphs from a meta-analysis. I tried to change the weight of the prediction interval using twig.size as described in the function help section. However, any number that I entered for twig.size ended up affecting the mean point. Trunk.size and branch.size both work as expected.

itchyshin commented 6 months ago

Thanks @CReemts for flagging this. I am away at the moment but I will check this out as soon as I have time

daniel1noble commented 6 months ago

@CReemts Thanks for catching this. The problem appears to be a reversal of the size and flatten arguments in geom_pointrange. This was an easy fix by flipping them around. Should hopefully work now

daniel1noble commented 6 months ago

Update. Sorry. It wasn't the reversal, but rather we needed to use a different argument from flatten because flatten controls both line and point. Although, the arguments were still reversed.