s-news
[Top] [All Lists]

Re: Importing/Exporting Graphics

To: "Prof Brian Ripley" <ripley@stats.ox.ac.uk>
Subject: Re: Importing/Exporting Graphics
From: "Jon Monteleone" <monte@ihug.co.nz>
Date: Wed, 29 Oct 2003 19:42:51 +1300
Cc: "Julie Thornton" <jthornto@bio.ri.ccf.org>, <s-news@lists.biostat.wustl.edu>
References: <Pine.LNX.4.44.0310290419570.10714-100000@gannet.stats>
Reply-to: "Jon Monteleone" <monte@ihug.co.nz>
On Wed, 29 Oct 2003, Prof Brian Ripley wrote:
> Many of us find any route that involves bitmapped images (such as JPEG)
> unsatisfactory.  And as the P in JPEG is `photographic', JPEG is amongst
> the worst options for line figures.  I would be particularly careful with
> using a screen capture program on X11 as anti-aliasing, colour dithering
> and so on may affect the screen image.  But we were told Julie is using
> Exceed, so she needs screen capture options *on Windows*.

Most of the splus figures I have generated are surfaces and not just plain
x-y line plots, so I just tested my method using some examples in the splus
help sections for xyplot() and plot().  Other than having to adjust the
contrast and brightness of the figure it looked fine in word and printed out
looking as good as if I printed it from splus.  I am assuming you say that
jpg format is poor for line figures because of data lost during compression?
If that is not the reason then I am confused why the jpg format is
unsatisfactory?

Quite right about the screen capture program being on windows.  I missed the
bit about Exceed.

> You will do much better to produce postscript on Unix or Windows and if
> necessary bitmap that at the desired final size using GSView or PhotoShop
> or ....
I have never had much success with postscript manipulation and importing
into word.  From my experience the figure axes become skewed and unreadable.
Perhaps I am doing something wrong?

> It is the convention on this list to copy your reply to the person on
> whose message you are commenting -- although you wrote to `Julie' you
> enclosed a message from me.  No sign that you actually read it, though!
Apologies.  I removed your name because I wanted to save you some spam.  You
would see it in the list anyway.

The general question about importing an splus figure into word is seen on
this list every few months.
I wonder:
1) Is the topic covered in the FAQ that is posted out occasionally?
2) Is there a "best" method for quickly and easily formatting figures for
importing into a word document?
3) What is that method if it exists?

People use different methods to achieve pasting a figure into word, and it
seems to me this is something that should have one best method.
Cheers -Jon
---
Jonathan Monteleone (MS), j.monteleone@auckland.ac.nz
Dept of Pharmacology & Clinical Pharmacology, School of Medicine
85 Park Rd, Private Bag 92019, Auckland, New Zealand
Work phone: +64 (9) 3737599 ext 86732
Pharmacometric Resources at
http://www.health.auckland.ac.nz/pharmacology/staff/nholford/pkpd/pkpd.htm
---

> On Wed, 29 Oct 2003, Jon Monteleone wrote:
>
> > Julie,
> > If you have become good at navigating through both Unix and Wintel, then
you
> > might take an additional leap and try the following:
> > 1) Get the figure to look good in S-plus on your screen
> > 2) Use a screen capture program and save the image as a jpg (dont know
one
> > off-hand for unix)
> > 3) Touch up, i.e. resize to fit into word document, the jpg using
something
> > like photoshop
> > 4) Import the jpg (your s-plus figure) into word
> > Once you have done it a few times this method is quick and easy to use
with
> > the added bonus that it preserves the same view you see in s-plus!  I
have
> > used this method extensively for my thesis figures.
> >
> > I do realize there are "built-in" figure saving options (both in the gui
and
> > native s calls) to export figures from s-plus, but I have been
unsatisfied
> > with their results.  There is also another path you could try.  Not sure
if
> > unix s-plus allows this, but in windows s-plus 2k (version 6?) there is
an
> > option in one of the drop-down menus that allows you to export your
figure
> > to powerpoint.  This sometimes works well, but manipulating the figure
once
> > in powerpoint can be cumbersome.
> >
> > Hope that helps!
> > Cheers -Jon
> > ---
> > Jonathan Monteleone (MS), j.monteleone@auckland.ac.nz
> > Dept of Pharmacology & Clinical Pharmacology, School of Medicine
> > 85 Park Rd, Private Bag 92019, Auckland, New Zealand
> > Work phone: +64 (9) 3737599 ext 86732
> > Pharmacometric Resources at
> >
http://www.health.auckland.ac.nz/pharmacology/staff/nholford/pkpd/pkpd.htm
> > ---
> >
> > ----- Original Message ----- 
> > From: "Prof Brian Ripley" <ripley@stats.ox.ac.uk>
> > To: "Julie Thornton" <jthornto@bio.ri.ccf.org>
> > Cc: <s-news@lists.biostat.wustl.edu>
> > Sent: Wednesday, October 29, 2003 10:29 AM
> > Subject: Re: [S] Importing/Exporting Graphics
> >
> >
> > > On Tue, 28 Oct 2003, Julie Thornton wrote:
> > >
> > > > I work on a PC and log into Unix using Exceed.  When I have several
> > > > plots on a page, it is really difficult to put the same plot I see
in
> > > > the S-PLUS (Unix version) graphics windows into Word (on PC side;
most
> > > > investigators want to receive memos in Word).  I save them as word
meta
> > > > files (using wmf.graph) in S-PLUS and then insert them into Word.  I
> > > > often lose numbers on my axes and the resolution is much poorer in
Word.
> > > >  I spend a lot of time going back and forth between operating
systems to
> > > > make the plots look right in Word.  The plots look extremely
different
> > > > in S-PLUS, Word, and even when they are printed.  Has anyone else
> > > > experienced this and/or have any suggestions?  Do you think having
> > > > S-PLUS on the PC side would be helpful?
> > >
> > > Yes, somewhat.  But the problem is that `wmf' is a proprietary
> > > non-standard and Insightful's best attempts to track it (kudos to Bill
> > > Dunlap) are not perfect, even on Windows.  (Pause: whichever
statistical
> > > package on Unix can write wmf at all?)  And `Word' can famously mangle
wmf
> > > that any other application can read.
> > >
> > > If you can, use postscript and include in `Word' docs.  If you can't,
an
> > > alternative route is http://www.pstoedit.net/pstoedit/ which despite
its
> > > website (thanks Bill Pikounis) can convert postscript to wmf on Unix
on
> > > Unix/Linux.  Again, not perfect.
> > >
> > > -- 
> > > Brian D. Ripley,                  ripley@stats.ox.ac.uk
> > > Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> > > University of Oxford,             Tel:  +44 1865 272861 (self)
> > > 1 South Parks Road,                     +44 1865 272866 (PA)
> > > Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> > >
> > > --------------------------------------------------------------------
> > > This message was distributed by s-news@lists.biostat.wustl.edu.  To
> > > unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> > > the BODY of the message:  unsubscribe s-news
> > >
> >
> > --------------------------------------------------------------------
> > This message was distributed by s-news@lists.biostat.wustl.edu.  To
> > unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> > the BODY of the message:  unsubscribe s-news
> >
> >
>
> -- 
> Brian D. Ripley,                  ripley@stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message:  unsubscribe s-news
>


<Prev in Thread] Current Thread [Next in Thread>