plot_surface | R Documentation |
A (filled) contour or perspective plot of a fitted model.
plot_surface( object, which = if (ncol(object$x) > 1 & tolower(type) != "singledim") { 1:2 } else { 1 }, constant = object$x[which.min(unlist(object$y)), ], xlab = paste("x", which, sep = ""), ylab = "y", type = "filled.contour", ... )
object |
the result list returned by |
which |
a vector with two elements, each an integer giving the two independent variables of the plot (the integers are indices of the respective data set). |
constant |
a numeric vector that states for each variable a constant value that it will take on
if it is not varied in the plot. This affects the parameters not selected by the |
xlab |
a vector of characters, giving the labels for each of the two independent variables. |
ylab |
character, the value of the dependent variable predicted by the corresponding model. |
type |
string describing the type of the plot: |
... |
additional parameters passed to the |
plotly visualization (based on plot_ly
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.