Skip to content

Instantly share code, notes, and snippets.

@briandk
Created February 22, 2012 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briandk/1888374 to your computer and use it in GitHub Desktop.
Save briandk/1888374 to your computer and use it in GitHub Desktop.
Testing print.four.plots.per.page
library(granovaGG)
# Explicitly printing four plots per page
pdf(file="~/Desktop/BrianTest1.pdf", onefile = TRUE)
data(rat)
fake.contrasts <- matrix(c(1, 1, 1, -1, -1, -1, -1, 1, 0, -1, 1, 0, 1, 1, -2,
1, 1, -2, -1, 1, 0, 1, -1, 0, 1, 1, -2, -1, -1, 2), ncol = 5)
fake.contrasts <- fake.contrasts[ ,1:3]
granovagg.contr(data = rat[ ,1],
contrasts = fake.contrasts,
print.four.plots.per.page = TRUE
)
""
dev.off()
# Setting print.four.plots.per.page to FALSE
pdf(file="~/Desktop/BrianTest2.pdf", onefile = TRUE)
granovagg.contr(data = rat[ ,1],
contrasts = fake.contrasts,
print.four.plots.per.page = FALSE
)
dev.off()
sessionInfo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment