The qg2
function allows quickly drawing plots from different types of objects. If you want to reproduce these but have more control on the chart (color, etc.) then please see the recipes vignette vignettes.
Dot and whisker
m1 <- lm(mpg ~ wt + cyl + disp + gear, data = mtcars)
qg2(m1)
Acf
cc <- acf(lh, plot = FALSE)
qg2(cc)
Xts
rate <- getFX("EUR/CHF", auto.assign = FALSE)
qg2(rate)
stl
s <- stl(nottem, "per")
qg2(s)
Roc curve
library(yardstick)
#> For binary classification, the first factor level is assumed to be the event.
#> Use the argument `event_level = "second"` to alter this as needed.
data(two_class_example)
roc <- roc_curve(two_class_example, truth, Class1)
qg2(roc)