Created
January 14, 2012 12:42
-
-
Save nicolamontecchio/1611295 to your computer and use it in GitHub Desktop.
r common plotting stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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