Skip to content

Commit a4cc15c

Browse files
author
Sean Lucey
committed
Script to plot the comparison table...commit also includes other output figures
1 parent d54a68d commit a4cc15c

10 files changed

+18
-0
lines changed

R/Comparison_plot.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#comparison plot
2+
library(ggplot2); library(data.table); library(here)
3+
4+
#Load comparison table
5+
load(here::here('data', 'agg.table.rda'))
6+
7+
#Change V1 to percentage
8+
agg.table[, Agreement := V1 / 28]
9+
10+
# Heatmap
11+
ggplot(agg.table,
12+
aes(x = Model_ID.x, y = Model_ID.y, fill= Agreement)) +
13+
geom_tile() +
14+
scale_x_discrete(limits = unique(rev(agg.table[, Model_ID.x]))) +
15+
scale_fill_viridis_c(direction = -1) +
16+
facet_wrap(~Scenario) +
17+
labs(x = 'Model ID', y = 'Model ID')
18+

output/Comparison.png

197 KB
Loading

output/Fishery_Minus_ecosense.png

108 KB
Loading

output/Fishery_Plus_ecosense.png

106 KB
Loading
110 KB
Loading
110 KB
Loading

output/Seals_Minus_ecosense.png

104 KB
Loading

output/Seals_Plus_ecosense.png

103 KB
Loading
110 KB
Loading
109 KB
Loading

0 commit comments

Comments
 (0)