library(flexdashboard) library(morrisjs)
morrisjs(mdeaths) %>% mjsLine
morrisjs(mdeaths) %>% mjsBar
morrisjs(mdeaths) %>% mjsArea
morrisjs(list(c("Label 1", "Label 2"), c(10, 20))) %>% mjsDonut
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.