CRSU-Apps / MetaInsight

An interactive web-based tool for analyzing, interrogating, and visualizing network meta-analyses using R-shiny
https://crsu.shinyapps.io/MetaInsight/
GNU General Public License v3.0
9 stars 9 forks source link

MR-23 main regression plot #112

Closed JanionNevill closed 10 months ago

JanionNevill commented 10 months ago

Created main plot. This has placeholder functions for the contents of the plot. These will be hooked up when the analysis becomes available.

I've added Clareece as a reviewer because she was on the Jira task.

JanionNevill commented 10 months ago

I've found 2 issues since this PR was opened. I will fix these asap and report back here when they're done:

  1. If ghosts are included and all treatments are added as comparators, then one remains greyed out.
    • This is due to how colours are added. Simple fix.
  2. If treatments are added out of alphabetical order, then the line colour does not match the confidence region fill colour
    • This is something to do with ggplot2 sorting the treatments alphabetically. Investigation ongoing.

1 was fixed by removing the ghosting colour when all comparators are used.

2 was fixed by sorting all of the comparators alphabetically before plotting