Skip to content

Commit

Permalink
Tweak figures and add knitted Rmarkdown pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmward committed Aug 29, 2021
1 parent e8c187c commit c8c159e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/cv_model_analyses.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ bind_rows(
) %>%
mutate(network = parse_factor(network, levels = c("PGS-only", "PGS-combo"))) %>%
plot_confusion_matrix(title = "") +
facet_wrap(vars(network), ncol = 2)
facet_wrap(vars(network), ncol = 2) +
theme(text=element_text(size=20))
```

```{r}
Expand Down
Binary file added src/cv_model_analyses.pdf
Binary file not shown.
8 changes: 4 additions & 4 deletions src/pgs_analyses.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ dur_pgs_deltas_bar %>%
coord_cartesian(xlim = c(0, 40)) +
labs(
x = "Added time to case (minutes)",
y = "Parkland Grading Scale"
y = "PGS"
)
ggsave("../output/pgs_duration.svg", width = 6, height = 6)
ggsave("../output/pgs_duration.pdf", width = 6, height = 6)
Expand Down Expand Up @@ -1111,7 +1111,7 @@ tidy_hole_samples %>%
scale_fill_brewer(labels = c("95%", "80%", "50%"), palette = "Purples") +
scale_y_continuous(labels = scales::percent_format()) +
labs(
x = "Parkland Grading Scale",
x = "PGS",
y = "Probability of an Inadvertent Gallbladder Hole",
fill = "Compatibility\nIntervals"
)
Expand Down Expand Up @@ -1477,8 +1477,8 @@ tidy_cvs_samples %>%
coord_cartesian(xlim = c(-0.1, 2)) +
geom_vline(xintercept = 1, linetype = 2) +
labs(
x = "Odds Ratio of Attaining the Critical View of Safety",
y = "Parkland Grading Scale"
x = "Odds Ratio of Attaining the CVS",
y = "PGS"
)
ggsave("../output/pgs_cvs.svg", width = 6, height = 4)
ggsave("../output/pgs_cvs.pdf", width = 6, height = 4)
Expand Down
Binary file added src/pgs_analyses.pdf
Binary file not shown.

0 comments on commit c8c159e

Please sign in to comment.