knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) do.call(knitr::read_chunk, list(path = "scripts/tutorial-ggplot.R"))
This tutorial shows how to plot samc analyses using ggplot2. It is based on the code in the basic tutorial.
<<setup>>
<<data>>
knitr::include_graphics("img/ggplot1.png")
knitr::include_graphics("img/ggplot2.png")
<<results>>
knitr::include_graphics("img/ggplot3.png")
knitr::include_graphics("img/ggplot4.png")
knitr::include_graphics("img/ggplot5.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.