mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 01:30:54 +01:00
(v2.1.1.9146) new scale_*_sir() functions
This commit is contained in:
1 parent
5ff9210c12
commit
bd2887bcd4
16 files changed
+460
-81
No files matched your search
+3
-2
@@ -95,7 +95,7 @@ if (require("ggplot2") && require("dplyr")) {
|
||||
ggplot(df) +
|
||||
geom_sir() +
|
||||
scale_y_percent() +
|
||||
scale_sir_colours() +
|
||||
scale_sir_colours(aesthetics = "fill") +
|
||||
labels_sir_count() +
|
||||
theme_sir()
|
||||
}
|
||||
@@ -139,7 +139,8 @@ if (require("ggplot2") && require("dplyr")) {
|
||||
) \%>\%
|
||||
ggplot() +
|
||||
geom_col(aes(x = x, y = y, fill = z)) +
|
||||
scale_sir_colours(Value4 = "S", Value5 = "I", Value6 = "R")
|
||||
scale_sir_colours(aesthetics = "fill",
|
||||
Value4 = "S", Value5 = "I", Value6 = "R")
|
||||
}
|
||||
if (require("ggplot2") && require("dplyr")) {
|
||||
# resistance of ciprofloxacine per age group
|
||||
|
||||
Reference in new issue
Block a user