Re: [R] Wiki for Graphics tips for MacOS X

2007-02-02 Thread Patrick Connolly
On Wed, 31-Jan-2007 at 12:11PM -0500, Gabor Grothendieck wrote:

| To get the best results you need to transfer it using vector
| graphics rather than bitmapped graphics:
| 
| http://www.stc-saz.org/resources/0203_graphics.pdf
| 
| There are a number of variations described here (see
| entire thread).  Its for UNIX and Windows but I think
| it would likely work similarly on Mac and Windows:
| 
| http://finzi.psych.upenn.edu/R/Rhelp02a/archive/32297.html

I found that interesting, particularly this part:

For example, on Linux do this:

   dev.control(displaylist=enable) # enable display list
   plot(1:10)
   myplot - recordPlot() # load displaylist into variable
   save(myplot, file=myplot, ascii=TRUE)

Send the ascii file, myplot, to the Windows machine and on Windows do this:

   dev.control(displaylist=enable) # enable display list
   load(myplot)
   myplot # displays the plot
   savePlot(myplot, type=wmf) # saves current plot as wmf 

I tried that, but I was never able to load the myplot in the Windows
R.  I always got a message about a syntax error to do with ' ' but I
was unable to work out what the problem was.  I thought it was because
the transfer to Windows wasn't binary, but that wasn't the problem.

I was unable to get the thread view at that archive to function so I
was unable to see if there were any follow ups which offered an
explanation.

R has changed quite a bit in the years since then, so it might be that
something needs to be done differently with more recent versions.

Has anyone done this recently?

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~} Great minds discuss ideas
 _( Y )_Middle minds discuss events 
(:_~*~_:)Small minds discuss people  
 (_)-(_)   . Anon
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Wiki for Graphics tips for MacOS X

2007-02-01 Thread Ben Bolker
Gabor Grothendieck ggrothendieck at gmail.com writes:

 
 To get the best results you need to transfer it using vector
 graphics rather than bitmapped graphics:
 
 http://www.stc-saz.org/resources/0203_graphics.pdf
 
 There are a number of variations described here (see
 entire thread).  Its for UNIX and Windows but I think
 it would likely work similarly on Mac and Windows:
 
 http://finzi.psych.upenn.edu/R/Rhelp02a/archive/32297.html
 
   
  yes, but:

  the whole point of this discussion was that there _is_ no
vector format that anyone knows of that (1) can be reliably
created on MacOS using R/open source tools and (2) can be
reliably imported into MS Word (with working preview etc.).
The thread you reference assumes that one has a Windows machine
handy (with or without R installed) for creating WMF
graphics.
  Hence the advice to create a high-resolution PNG, which
seems to work well enough even if it is not optimal.

  cheers
Ben Bolker

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Wiki for Graphics tips for MacOS X

2007-02-01 Thread Gabor Grothendieck
On 2/1/07, Ben Bolker [EMAIL PROTECTED] wrote:
 Gabor Grothendieck ggrothendieck at gmail.com writes:

 
  To get the best results you need to transfer it using vector
  graphics rather than bitmapped graphics:
 
  http://www.stc-saz.org/resources/0203_graphics.pdf
 
  There are a number of variations described here (see
  entire thread).  Its for UNIX and Windows but I think
  it would likely work similarly on Mac and Windows:
 
  http://finzi.psych.upenn.edu/R/Rhelp02a/archive/32297.html
 

  yes, but:

  the whole point of this discussion was that there _is_ no
 vector format that anyone knows of that (1) can be reliably
 created on MacOS using R/open source tools and (2) can be
 reliably imported into MS Word (with working preview etc.).
 The thread you reference assumes that one has a Windows machine
 handy (with or without R installed) for creating WMF
 graphics.
  Hence the advice to create a high-resolution PNG, which
 seems to work well enough even if it is not optimal.

AFAIK there do exist tools for the Mac for fig graphics and that was one of the
several solutions proposed there.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Wiki for Graphics tips for MacOS X

2007-02-01 Thread Gabor Grothendieck
I don't have a Linux system to try it with but
omitting both dev.control statements it worked for me
between two Windows XP sessions on the same
machine using this version of R:

 R.version.string # Windows XP
[1] R version 2.4.1 Patched (2006-12-30 r40331)

It also successfully worked with:

 R.version.string # Windows XP
[1] R version 2.5.0 Under development (unstable) (2007-01-31 r40623)



On 2/1/07, Patrick Connolly [EMAIL PROTECTED] wrote:
 On Wed, 31-Jan-2007 at 12:11PM -0500, Gabor Grothendieck wrote:

 | To get the best results you need to transfer it using vector
 | graphics rather than bitmapped graphics:
 |
 | http://www.stc-saz.org/resources/0203_graphics.pdf
 |
 | There are a number of variations described here (see
 | entire thread).  Its for UNIX and Windows but I think
 | it would likely work similarly on Mac and Windows:
 |
 | http://finzi.psych.upenn.edu/R/Rhelp02a/archive/32297.html

 I found that interesting, particularly this part:

 For example, on Linux do this:

   dev.control(displaylist=enable) # enable display list
   plot(1:10)
   myplot - recordPlot() # load displaylist into variable
   save(myplot, file=myplot, ascii=TRUE)

 Send the ascii file, myplot, to the Windows machine and on Windows do this:

   dev.control(displaylist=enable) # enable display list
   load(myplot)
   myplot # displays the plot
   savePlot(myplot, type=wmf) # saves current plot as wmf

 I tried that, but I was never able to load the myplot in the Windows
 R.  I always got a message about a syntax error to do with ' ' but I
 was unable to work out what the problem was.  I thought it was because
 the transfer to Windows wasn't binary, but that wasn't the problem.

 I was unable to get the thread view at that archive to function so I
 was unable to see if there were any follow ups which offered an
 explanation.

 R has changed quite a bit in the years since then, so it might be that
 something needs to be done differently with more recent versions.

 Has anyone done this recently?

 --
 ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
   ___Patrick Connolly
  {~._.~} Great minds discuss ideas
  _( Y )_Middle minds discuss events
 (:_~*~_:)Small minds discuss people
  (_)-(_)   . Anon

 ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Wiki for Graphics tips for MacOS X

2007-01-31 Thread Martin Henry H. Stevens
Hi Folks,
I just finished (the first draft of) a Wiki document to explains  
options for producing graphics to incorporate in MS Word.
Thanks to all those who provided input, and who provided the wiki space.

Here is the direct link.

http://wiki.r-project.org/rwiki/doku.php?id=tips:using- 
platform:macosx-graphics

Cheers,
Hank

Dr. Hank Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056

Office: (513) 529-4206
Lab: (513) 529-4262
FAX: (513) 529-4243
http://www.cas.muohio.edu/~stevenmh/
http://www.muohio.edu/ecology/
http://www.muohio.edu/botany/

E Pluribus Unum

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Wiki for Graphics tips for MacOS X

2007-01-31 Thread Gabor Grothendieck
To get the best results you need to transfer it using vector
graphics rather than bitmapped graphics:

http://www.stc-saz.org/resources/0203_graphics.pdf

There are a number of variations described here (see
entire thread).  Its for UNIX and Windows but I think
it would likely work similarly on Mac and Windows:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/32297.html

On 1/31/07, Martin Henry H. Stevens [EMAIL PROTECTED] wrote:
 Hi Folks,
 I just finished (the first draft of) a Wiki document to explains
 options for producing graphics to incorporate in MS Word.
 Thanks to all those who provided input, and who provided the wiki space.

 Here is the direct link.

 http://wiki.r-project.org/rwiki/doku.php?id=tips:using-
 platform:macosx-graphics

 Cheers,
 Hank

 Dr. Hank Stevens, Assistant Professor
 338 Pearson Hall
 Botany Department
 Miami University
 Oxford, OH 45056

 Office: (513) 529-4206
 Lab: (513) 529-4262
 FAX: (513) 529-4243
 http://www.cas.muohio.edu/~stevenmh/
 http://www.muohio.edu/ecology/
 http://www.muohio.edu/botany/

 E Pluribus Unum

 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.