1
0
mirror of https://github.com/msberends/AMR.git synced 2025-09-08 05:29:43 +02:00

ggplot_rsi example update, more unit tests

This commit is contained in:
2018-08-29 16:25:57 +02:00
parent 029157b3be
commit d9e68e0a50
10 changed files with 121 additions and 18 deletions

View File

@@ -151,16 +151,18 @@ library(dplyr)
library(ggplot2)
septic_patients %>%
select(amox, cipr) %>%
select(amox, nitr, fosf, trim, cipr) %>%
ggplot_rsi()
```
![example_2_rsi](man/figures/rsi_example2.png)
Adjust it with any parameter you know from the `ggplot2` package:
```r
septic_patients %>%
select(amox, cipr) %>%
ggplot_rsi(x = "Interpretation", facet = "Antibiotic")
select(amox, nitr, fosf, trim, cipr) %>%
ggplot_rsi(width = 0.5, colour = "black", size = 1, linetype = 2, alpha = 0.25)
```
![example_3_rsi](man/figures/rsi_example3.png)