Skip to content

Instantly share code, notes, and snippets.

@nicolamontecchio
Created January 14, 2012 12:42
Show Gist options
  • Select an option

  • Save nicolamontecchio/1611295 to your computer and use it in GitHub Desktop.

Select an option

Save nicolamontecchio/1611295 to your computer and use it in GitHub Desktop.
r common plotting stuff
# subplots:
layout(matrix(c(1,2), 2, 1, byrow = TRUE)) # first matrix defines "occupancy"
# then do all the plot() commands, one per figure
dev.new(width,height)
# FONT STUFF
par(family="serif")
plot(x,y, log="x", type='l', xlab='blabla', ylab='blabla', axes=FALSE)
dev.copy2pdf(file="abc.pdf", font=c('serif'))
box() # make box around plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment