grid_predict <- function(fit){
grid <- expand.grid(plate_x = seq(-1.5, 1.5, length=50),
plate_z = seq(1, 4, length=50))
grid$lp <- predict(fit, grid, type = "response")
grid
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.