Skip to content

Instantly share code, notes, and snippets.

@JamesOBenson
Created August 19, 2016 04:11
Show Gist options
  • Save JamesOBenson/4bce1e61e4d02524862cd47732a2159d to your computer and use it in GitHub Desktop.
Save JamesOBenson/4bce1e61e4d02524862cd47732a2159d to your computer and use it in GitHub Desktop.
R basic parameters (par) to help create a great looking boxplot....
load("some_data.RData")
png(file=output.png",width=1200,height=1200)
par(cex.main = 1.5, mar = c(5, 6, 4, 5) + 0.1, mgp = c(3.5, 1, 0), cex.lab = 2.0,
font.lab = 2, cex.axis = 2.0, bty = "n", las = 1, family="serif")
boxplot(formula~categories,
data=mydata,
ylim=c(0,100),
cex.out = 1,
col="blue",
xlab="X-label",
ylab="Y-label")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment