This is an R Markdown document that could be rendered under a Docker container using liftr
. The document requires the specc()
function in the kernlab
package from CRAN to perform a simple spectral clustering:
library("kernlab") data(spirals) set.seed(42) sc = specc(spirals, centers = 2) print(sc) plot(spirals, col = sc)
The document front-matter metadata includes the options for liftr
, which is used for dockerizing the document:
rmarkdown::metadata$liftr
The R session information for compiling this document is shown below.
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.