createIke <- function(obj, envType) {
class(obj) <- 'ike'
attr(obj, 'envType') <- envType # like precip
}
plot.ike <- function(x, col) {
if (is.missing(col)) {
col <- switch(attr(x, 'envType'),
'precip' = x,
'substrate' = y)
}
# plot the ike object
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.