biosustain / memote-meta-study

Test metabolic models in the wild and rank them according to popularity and how easily they can be improved.
Apache License 2.0
3 stars 2 forks source link

feat: restyle to Sina plots and generate manuscript panel figure. #1

Closed ChristianLieven closed 5 years ago

ChristianLieven commented 5 years ago

Hey @Midnighter and @phantomas1234 ,

in this PR I made the following changes:

ChristianLieven commented 5 years ago
Midnighter commented 5 years ago

I only inverse the metric (aka. 1 - metric) for scored tests. For unscored tests the metric will no longer be switched around. This may be in conflict with the added y-axis labels, which will have to be double-checked.

Why did you decide to do this? Won't it confuse readers that the scale is suddenly inversed?

Midnighter commented 5 years ago

Just looked at the panel figure. Must admit I'm not happy with the y-axis label wrapping over 4 lines. At least for the panel I'll play around a bit more.

ChristianLieven commented 5 years ago

Just looked at the panel figure. Must admit I'm not happy with the y-axis label wrapping over 4 lines. At least for the panel I'll play around a bit more.

You can change that easily by manipulating the width parameter in this line: ylabels = str_wrap(y_axis_labels[as.character(test)], width = 25),

I only inverse the metric (aka. 1 - metric) for scored tests. For unscored tests the metric will no longer be switched around. This may be in conflict with the added y-axis labels, which will have to be double-checked.

Why did you decide to do this? Won't it confuse readers that the scale is suddenly inversed?

I thought having the same or similar y-axis labels as the Test names in our report would make sense.