contour_graph <- function(df, L, title){
ggplot(df) +
geom_contour_fill(aes(x=plate_x,
y=plate_z,
z=lp),
breaks=c(L),
size=1.5) +
scale_fill_distiller(palette="Spectral") +
add_zone("black") +
xlim(-1.5, 1.5) +
ylim(1.0, 4.0) +
coord_fixed() +
ggtitle(title) +
centertitle() +
increasefont()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.