[BioC] dev.copy and rRcript
Warnes, Gregory R.
gregory.warnes at rochester.edu
Fri Oct 31 18:13:35 CET 2008
As described by the dev.copy() manual page, dev.copy(), dev.print(), and
dev.copy2eps() all require that the device have the recording of
graphics operations enabled to function properly. Most interactive
(screen) devices have recording turned on by default, while most
non-interactive (file) devices have recording turned off by default.
Recording can be turned on using the command
dev.control(displaylist = "enable")
and off using
dev.control(displaylist = "inhibit")
which should only be done when a device is initially created.
[Original author of dev.copy()]
From: bioconductor-bounces at stat.math.ethz.ch
[mailto:bioconductor-bounces at stat.math.ethz.ch] On Behalf Of James W.
Sent: Friday, October 31, 2008 8:40 AM
To: Amanda Miotto
Cc: r-help-request at stat.math.ethz.ch; bioconductor at stat.math.ethz.ch
Subject: Re: [BioC] dev.copy and rRcript
Amanda Miotto wrote:
> I have a Bioconductor based script running that uses dev.copy and
> save images to my hard drive which works well. However, when I try
to run it
> with Rscript (from the terminal) instead of R, it doesn't save the
> it should, and a file called Rplots.pdf has been created. How do I
> around this?
> dev.copy(jpeg, filename, width = 1000, units = "px")
Using dev.copy() seems needlessly complex. If you want a jpeg, why don't
you use the jpeg() function?
Works identically for me interactively and via Rscript.
> Amanda Miotto
> a.miotto at griffith.edu.au
> Software Engineer
> Research Computing Services
> INFORMATION SERVICES
> Griffith University, NATHAN 4111, AUSTRALIA
> Phone: +61 7 37354419 Fax: +61 7 37356650
> Web: http://eResearch.griffith.edu.au/
> PRIVILEGED - PRIVATE AND CONFIDENTIAL:
> This email and any files transmitted with it are intended solely
> the use of the addressee(s) and may contain information which is
> confidential or privileged. If you receive this email and you are
> not the addressee(s) [or responsible for delivery of the email to
> addressee(s)], please disregard the contents of the email, delete
> email and notify the author immediately.
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> Search the archives:
James W. MacDonald, M.S.
8220D MSRB III
1150 W. Medical Center Drive
Ann Arbor MI 48109-0646
Bioconductor mailing list
Bioconductor at stat.math.ethz.ch
Search the archives:
More information about the Bioconductor