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

png("all.png")
par(mar = c(15, 4, .5, .5))
barplot(setNames(dat$number, dat$name), las = 2)
dev.off()

write.csv(dat, "all.csv", row.names = FALSE)

sub <- head(dat, 3)

png("subset.png")
par(mar = c(15, 4, .5, .5))
barplot(setNames(sub$number, sub$name), las = 2)
dev.off()

write.csv(sub, "subset.csv", row.names = FALSE)

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.