desplot::desplot() across multiple columnsdesplot_across.RdThe goal of this function is to allow the user a quick and easy glance at the experimental layout of a trial by creating multiple desplots at once - one for each variable that is provided (see example below).
A data frame.
Vector with variables/column names for which a desplot should be created.
A formula like x*y|location, i.e. the right-hand side of the formula yield~x*y|location that would usually be passed to desplot::desplot(form = ...). Note that x and y are numeric and the default is "col + row".
Language for plots labels.
Can either be "none", "short" or "long". For the respective var, it gives information about the number of levels and their respective frequency in the data.
see desplot::desplot() documentation - set to opinionated default here
see desplot::desplot() documentation - set to opinionated default here
see desplot::desplot() documentation - set to opinionated default here
Other arguments passed to desplot::desplot().
A list of desplots.
library(BioMathR)
dps <- desplot_across(data = agridat::yates.oats,
vars = c("nitro", "gen", "block"),
cex = 1)
dps$nitro
dps$gen
dps$block