We define a variable that can be passed as yname
, or the name of DV
DV versus PRED [dv_pred]
dv_pred(df, yname = .yname)
Un-fix x- and y-axis limits
By default, pmplots forces the x- and y- scales to have the same limits so you get a square plot. You can prevent this behavior with
dv_pred(df, scales = "free")
If you are faceting, you’ll have to pass scales="free"
to both dv_pred()
and facet_wrap()
dv_pred(df, scales = "free") + facet_wrap(~RF, scales = "free")
DV versus PRED - log/log
dv_pred(df, loglog=TRUE, yname = .yname)
DV versus IPRED [dv_ipred]
dv_ipred(df, yname = .yname)
DV versus IPRED - log/log
dv_ipred(df, loglog = TRUE, yname = .yname)
DV versus both PRED and IPRED [dv_preds]
dv_preds(df, yname = .yname) %>% pm_grid(ncol = 2)