# library(ggplot2)
#
# ggplot_alternative <- function()
# {
# the_data <- data.frame(
# x <- seq(0, 1, length.out = 100),
# y = pbeta(x, 1, 10)
# )
#
# ggplot(the_data, aes(x, y)) +
# geom_line() +
# xlab("False Positive Rate") +
# ylab("Average true positive rate") +
# coord_cartesian(0:1, 0:1)
# }
#
# ggsave(
# "ggtest.png",
# ggplot_alternative(),
# width = 3.25,
# height = 3.25,
# dpi = 1200
# )
#-----------------------------
# Make a 6x6 inch image at 300dpi
#ppi <- 300
#png("plot.png", width=6*ppi, height=6*ppi, res=ppi)
#plot(...)
#dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.