inst/examples/demo/src/multifile-artefact/script.R

plt <- function() {
  par(mar = c(15, 4, .5, .5))
  barplot(setNames(dat$number, dat$name), las = 2)
}

png("mygraph.png")
plt()
dev.off()

pdf("mygraph.pdf")
plt()
dev.off()

Try the orderly package in your browser

Any scripts or data that you put into this service are public.

orderly documentation built on Sept. 22, 2021, 5:09 p.m.