Nothing
suppressPackageStartupMessages({
library(ggplot2)
library(command)
})
cmd_assign(.vals_fitted = "out/vals_fitted.rds",
.out = "out/fig_fitted.png")
vals_fitted <- readRDS(.vals_fitted)
p <- ggplot(vals_fitted, aes(x = agriculture)) +
facet_wrap(vars(variant)) +
geom_point(aes(y = fertility)) +
geom_line(aes(y = fitted))
png(file = .out,
width = 600,
height = 300)
plot(p)
dev.off()
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.