#' Create linear model
#'
#' Creates linear of landmarks with size as predictor
#' @param data landmarks array
#' @export
#' @import geomorph
generate.model <- function(data) {
data.m <- two.d.array(data$coords)
size <- data$Csize
n <- ncol(data.m)
model <- lm(as.matrix(data.m)[,1:n] ~ size)
return(model)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.