[BioC] Questions about R on linux

Jan T. Kim jtk at cmp.uea.ac.uk
Mon Jun 20 19:59:19 CEST 2005


On Mon, Jun 20, 2005 at 12:40:01PM -0400, Steve Lee wrote:
> have two questions.
> 
> when i do 
> fix()
> 
> it brings up my data in vi
> 
> is there a way to make it bring up the data in more of a spreadsheet
> like format like it does in the windows version?
>
> 
> also,
> 
> is there a way to save a plot to a file?  i've tried dev.print and
> dev.copy to no avail.

One standard way is to use the postscript device:

    postscript("myplot.ps");
    plot(1:10, sqrt(1:10));
    dev.off();

Don't forget / omit the dev.off() call when done, otherwise the file may
be incomplete (unflushed).

With (e.g.)

    postscript("myplot.eps", width=8, height=6, onefile=FALSE, horizontal=FALSE);

you can create nice EPS files, suitable for inclusion in LaTeX...

Best regards, Jan
-- 
 +- Jan T. Kim -------------------------------------------------------+
 |    *NEW*    email: jtk at cmp.uea.ac.uk                               |
 |    *NEW*    WWW:   http://www.cmp.uea.ac.uk/people/jtk             |
 *-----=<  hierarchical systems are for files, not for humans  >=-----*



More information about the Bioconductor mailing list