1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 23:41:57 +02:00

new tibble export

This commit is contained in:
2022-08-27 20:49:37 +02:00
parent 164886f50b
commit 303d61b473
115 changed files with 836 additions and 996 deletions

View File

@ -142,7 +142,7 @@ if (require("dplyr")) {
filter_first_isolate() \%>\%
filter(mo_genus(mo) == "Staphylococcus") \%>\%
resistance_predict("PEN", model = "binomial")
plot(x)
print(plot(x))
# get the model from the object
mymodel <- attributes(x)$model
@ -150,7 +150,7 @@ if (require("dplyr")) {
}
# create nice plots with ggplot2 yourself
if (require("dplyr") & require("ggplot2")) {
if (require("dplyr") && require("ggplot2")) {
data <- example_isolates \%>\%
filter(mo == as.mo("E. coli")) \%>\%