[BioC] dev.copy and rRcript
James W. MacDonald
jmacdon at med.umich.edu
Fri Oct 31 13:40:03 CET 2008
Hi Amanda,
Amanda Miotto wrote:
> I have a Bioconductor based script running that uses dev.copy and dev.off to
> 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 images as
> it should, and a file called Rplots.pdf has been created. How do I get
> around this?
> gdPlot(yeplotlist,labelCex=1)
> filename<-paste(currentgene,"graph.jpeg",sep="")
> dev.copy(jpeg, filename, width = 1000, units = "px")
> dev.off()
Using dev.copy() seems needlessly complex. If you want a jpeg, why don't
you use the jpeg() function?
jpeg("graph.jpeg", width=1000)
plot(1:10)
dev.off()
Works identically for me interactively and via Rscript.
Best,
Jim
> Thanks,
> 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 for
> 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 the
> addressee(s)], please disregard the contents of the email, delete the
> email and notify the author immediately.
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
--
James W. MacDonald, M.S.
Biostatistician
Hildebrandt Lab
8220D MSRB III
1150 W. Medical Center Drive
Ann Arbor MI 48109-0646
734-936-8662
More information about the Bioconductor
mailing list