gg_rsm {ggDoE} | R Documentation |
Contour plot(s) of a fitted linear model in ggplot2
gg_rsm( rsm_model, form, filled = FALSE, decode = FALSE, n_columns = 2, stroke = 0.15, size = 4, ... )
rsm_model |
Model of class "rsm" |
form |
A formula, or a list of formulas |
filled |
Determine if the surface plots should be filled by viridis color palette. Default is FALSE |
decode |
This has an effect only if x is an rsm object or other model object that supports coded.data. In such cases, if decode is TRUE, the coordinate axes are transformed to their decoded values. |
n_columns |
number of columns for grid layout. Default is 2 |
stroke |
width of stroke relative to the size of the text. Ignored if less than zero. Only applied if contour plots are filled |
size |
size of text for contour lines. Only applied if contour plots are filled |
... |
Other arguments passed on to contour(). For help with more arguments see ?rsm::contour.lm |
A grid of contour plot(s) of a fitted linear model in 'ggplot2'
heli.rsm <- rsm::rsm(ave ~ SO(x1, x2, x3, x4), data = rsm::heli) gg_rsm(heli.rsm,form = ~x1+x3+x4,at = rsm::xs(heli.rsm),n_columns=3) gg_rsm(heli.rsm,form = ~x2+x3+x4,at = rsm::xs(heli.rsm),n_columns=3,filled = TRUE)