gforge / forestplot

Advanced forest plots in R using grid graphics
44 stars 15 forks source link

"grey out" non significant rows #39

Closed Sidra-TBI-FCO closed 3 years ago

Sidra-TBI-FCO commented 3 years ago

Thank you for fantastic package, could you add option to change color of the plotted row depending on the values in the table. Or use a color vector instead of a single value ? I'm trying to grey-out non significant rows as I plot multiple of these side by side.

gforge commented 3 years ago

Thanks, there is always a balance between complexity and ease of use. Looking at the code it seems that this could be done although I haven't tried it: https://github.com/gforge/forestplot/blob/master/R/private.R#L617-L620

It would take some time and currently I don't think I can commit the time required to get this ready. You are welcome though to play around and suggest a solution. I don't think that providing a p-value threshold with color is a good idea though, this should be done before calling forestplot() by allowing to customize each row.

gforge commented 3 years ago

Closing due to lack of activity