briandk / granovaGG

Bob Pruzek and Jim Helmreich's implementation of Elemental Graphics for Analysis of Variance
Other
15 stars 4 forks source link

print.four.plots.per.page seems problematic #146

Closed briandk closed 12 years ago

briandk commented 12 years ago

@rmpruzek writes:

One thing I tried that seemed not to work concerned the arg (setting) print.four.plts.per.page=FALSE

in granova.ds. The result seemed identical to that w/ the setting TRUE (default). Am not sure what I should have expected

Without sample code, it's hard to diagnose the problem. From a quick scan of what you say you did, my guess is that you misspelled "plots" in the argument.

I created a sample script to demonstrate the difference you should see. When executed, the script will place two files on your desktop:

Comparing print four plots per page TRUE/FALSE

The script is also reproduced for convenience below:

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()

/cc @WilDoane

rmpruzek commented 12 years ago

Brian, Mea culpa. T'is ok now. thnks. bb :-)))


From: Brian A. Danielak reply@reply.github.com To: rmpruzek rmpruzek@yahoo.com Sent: Wednesday, February 22, 2012 6:48 PM Subject: [granovaGG] print.four.plots.per.page seems problematic (#146)

@rmpruzek writes:

One thing I tried that seemed not to work concerned the arg (setting) print.four.plts.per.page=FALSE

in granova.ds. The result seemed identical to that w/ the setting TRUE (default). Am not sure what I should have expected

Without sample code, it's hard to diagnose the problem. From a quick scan of what you say you did, my guess is that you misspelled "plots" in the argument.

I created a sample script to demonstrate the difference you should see. When executed, the script will place two files on your desktop:

Comparing print four plots per page TRUE/FALSE

The script is also reproduced for convenience below:

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()

/cc @WilDoane


Reply to this email directly or view it on GitHub: https://github.com/briandk/granovaGG/issues/146

rmpruzek commented 10 years ago

Bob Pruzek sent you an invitation

Twitter helps you stay connected with what's happening right now and with the people and organizations you care about.

Accept invitation

https://twitter.com/i/b3c038f2-041a-4810-84e7-41babd820748

You can unsubscribe from receiving email notifications from Twitter at anytime. For general inquiries, please visit us at Twitter Support. Unsubscribe: https://twitter.com/i/o?t=1&iid=911d0fee896b425abe993aeab0c59a26&uid=0&c=IuVwbCB3dgH9ozSsEQBxilCGPZssuxBMkh16JwGZTRPLwNCZ3%2FaeU%2Fsmhxa6%2B%2B9%2Fb7AvLmF0gQjwAI2L8A4Vt6TxCVqnPGZO1YwIH0ewgBwm0Hu%2FMiji9w%3D%3D&nid=9+26

Need help? https://support.twitter.com