Re: [R-SIG-Mac] 2.10.0 beta help functions

2009-10-15 Thread Simon Urbanek


On Oct 14, 2009, at 7:19 PM, Peter Cowan wrote:


I just installed the nightly from r.research.att.com called R 2.10.0
beta (2009-10-13) for leopard using the pkg installer.

When I use ?plot or help(plot) the help window opens, but is blank.
And, I get this warning:


?plot

Warning message:
In help(plot, package = NULL) :
 htmhelp = TRUE is deprecated: use help_type =html

I know the help system has changed significantly in 2.10.0 and I
apologize if it is poor form to report errors such as this while the
still in the beta phase,


To the contrary! The whole point of the beta phase is that it gets  
tested and all errors reported -- I'll look into this, thanks for the  
report.


Cheers,
Simon



but my reliance on these help functions has
prevented me from continuing to use the beta and test other changes.

BTW thank you for the option, in the new installer, to only install
the 64bit GUI version.

Thank you,

Peter

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac




___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] 2.10.0 beta help functions

2009-10-15 Thread Simon Urbanek


On Oct 14, 2009, at 9:12 PM, Duncan Murdoch wrote:


Peter Cowan wrote:

I just installed the nightly from r.research.att.com called R 2.10.0
beta (2009-10-13) for leopard using the pkg installer.

When I use ?plot or help(plot) the help window opens, but is blank.
And, I get this warning:



?plot


Warning message:
In help(plot, package = NULL) :
 htmhelp = TRUE is deprecated: use help_type =html

I know the help system has changed significantly in 2.10.0 and I
apologize if it is poor form to report errors such as this while the
still in the beta phase, but my reliance on these help functions has
prevented me from continuing to use the beta and test other changes.

BTW thank you for the option, in the new installer, to only install
the 64bit GUI version.


I can confirm the problem in a current download, which labels itself  
as 2.10.0 alpha (2009-10-08 r49995), R for Mac OS X GUI 1.30-devel  
Leopard build 32-bit.


You can get to the help system by running help.start(), but internal  
requests like ?plot will still go to the internal browser, which  
isn't working.


Thanks - I'll look into this.


 You can work around the bug by deleting the AQUA section of  
utils:::print.help_files_with_topic, e.g. by doing as follows:


print.help_files_with_topic - utils:::print.help_files_with_topic

and then deleting the lines

  if (.Platform$GUI == AQUA) {
  .Internal(aqua.custom.print(help-files, x))
  return(invisible(x))
  }

from your copy of print.help_files_with_topic.

One other problem with the installer:  by default it installed both  
32 and 64 bit versions, but R wouldn't start until I re-installed  
without the 64 bit version.  I'm using Leopard 10.5.8 on an old  
Intel Core Duo Macbook.  Can the installer detect that 64 bit  
executables are not supported, and not install it?




It *is* checking the CPU and adjusting the installation accordingly,  
but there is some conflict in the automatically generated installer --  
it's not present when I create the package manually so it will need  
some more investigation...


Thanks,
Simon

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[R-SIG-Mac] tiff output on Mac

2009-10-15 Thread Michael Denslow
Dear R Mac folks,

I have not seen a thread on this so I thought I would get some input
regarding tiff output on a Mac.
I am currently running OS 10.6.1 and R 2.9.2 GUI 1.29 Tiger build 32-bit (5464).

I realize that the easiest way to save a plot is to select File, Save
As. Which outputs a .pdf file. However, if I insert this graphic into
Microsoft Word and send it to a friend on Windows the file gets
mangled (the quality is decreased significantly). So I am working on
just writing high quality tiff files which seem to display well all on
both platforms. Tiffs also seems to be one of the preferred file types
for many journals in my field.

Here are the options I have found that work on Macs.


# requires Ghostscript
bitmap(file=MacTest.tiff, type = tifflzw,
height = 7, width = 7, res = 600,
  units = in)
plot(rpois(1:40,10))
dev.off()


tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
plot(rpois(1:100,1))
dev.off()

quartz(height = 7, width = 7, type = 'tiff', file = 'MacTest.tiff',bg
= 'white',dpi = 600)
hist(rpois(1:100,1))
dev.off()


hist(rpois(1:100,1))
# line are not all dark in output, not sure which tiff type to use...
dev2bitmap(file = 'MacTest.tiff', type = 'tiff24nc', height = 7, width
= 7, res = 600,
units = 'in')


I have noticed that for bitmap and tiff the font and symbol size seems
to differ between the R session plot and the output plot.
Are there other graphic output options that I am missing here? Any
tips would be most appreciated.
Thanks in advance,
Michael

-- 
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] 2.10.0 beta help functions

2009-10-15 Thread Rob Goedman
Peter,

On my system (SnowLeopard, below R builds) I did see the warning  
messages (but the internal help worked fine).

This morning I changed the htmlhelp settings as suggested by the  
warning message ( help_type ='html' ) in main.m and rebuild R.app. The  
warnings are gone and help still works.

Rob

-


R version 2.10.0 beta (2009-10-15 r50083)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

...

[R.app GUI 1.30 (5495) x86_64-apple-darwin9.8.0]

[Workspace restored from /Users/rob/Projects/.RData]

  ?ls
Warning message:
In help(ls, package = NULL) :
   htmhelp = TRUE is deprecated: use help_type =html
 


On Oct 14, 2009, at 6:42 PM, Simon Urbanek wrote:


 On Oct 14, 2009, at 7:19 PM, Peter Cowan wrote:

 I just installed the nightly from r.research.att.com called R 2.10.0
 beta (2009-10-13) for leopard using the pkg installer.

 When I use ?plot or help(plot) the help window opens, but is blank.
 And, I get this warning:

 ?plot
 Warning message:
 In help(plot, package = NULL) :
 htmhelp = TRUE is deprecated: use help_type =html

 I know the help system has changed significantly in 2.10.0 and I
 apologize if it is poor form to report errors such as this while the
 still in the beta phase,

 To the contrary! The whole point of the beta phase is that it gets  
 tested and all errors reported -- I'll look into this, thanks for  
 the report.

 Cheers,
 Simon


 but my reliance on these help functions has
 prevented me from continuing to use the beta and test other changes.

 BTW thank you for the option, in the new installer, to only install
 the 64bit GUI version.

 Thank you,

 Peter

 ___
 R-SIG-Mac mailing list
 R-SIG-Mac@stat.math.ethz.ch
 https://stat.ethz.ch/mailman/listinfo/r-sig-mac



 ___
 R-SIG-Mac mailing list
 R-SIG-Mac@stat.math.ethz.ch
 https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] 2.10.0 beta help functions

2009-10-15 Thread Prof Brian Ripley

On Thu, 15 Oct 2009, Simon Urbanek wrote:



On Oct 15, 2009, at 16:01 , Prof Brian Ripley wrote:


Hmm, I think you probably have pre-built html pages.


Yes, that's likely. They used to be part of the installation but now are not. 
The fact that they are missing was useful to point out that I forgot to 
switch R.app from html to dynamic help (fixed now), but I was actually 
planning on keeping them installed for other software that relies on it (e.g. 
JGR). That will give those packages the chance to update until R 2.11.0.


I am sure Simon knows this, but they are still optional (configure 
option --enable-prebuilt-html).  More seriously, they are pretty much 
untested and I've fixed a couple of non-trivial bugs today (so the 
HTML files need to be regenerated).


Also, I've just updated my checkout of the Mac-GUI project and rebuilt 
it, and whereas help() now works with dynamic help, help.search() 
still fails to find pages for packages not under the main library tree 
(print.hsearch in the Mac-GUI project needs updating).


It's your prerogative to ship prebuilt HTML pages, but they are not 
going to be shipped on Windows, and not AFAIK on Linux binary builds, 
so a fair proportion of JGR users will want an update anyway.  They 
just add to the size of the download and the vast majority of users 
will never access them.


Brian



Thanks,
Simon


I simply don't see any code that will generate them, either directly or by 
starting the httpd server to do so.


I just did some quick experiments, and I get blank pages on packages 
without pre-built html, and correct ones on a package I just installed with 
'R CMD INSTALL --html'.


On Thu, 15 Oct 2009, Rob Goedman wrote:


Peter,

On my system (SnowLeopard, below R builds) I did see the warning
messages (but the internal help worked fine).

This morning I changed the htmlhelp settings as suggested by the
warning message ( help_type ='html' ) in main.m and rebuild R.app. The
warnings are gone and help still works.

Rob

-


R version 2.10.0 beta (2009-10-15 r50083)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

...

[R.app GUI 1.30 (5495) x86_64-apple-darwin9.8.0]

[Workspace restored from /Users/rob/Projects/.RData]


?ls

Warning message:
In help(ls, package = NULL) :
htmhelp = TRUE is deprecated: use help_type =html





On Oct 14, 2009, at 6:42 PM, Simon Urbanek wrote:



On Oct 14, 2009, at 7:19 PM, Peter Cowan wrote:


I just installed the nightly from r.research.att.com called R 2.10.0
beta (2009-10-13) for leopard using the pkg installer.

When I use ?plot or help(plot) the help window opens, but is blank.
And, I get this warning:


?plot

Warning message:
In help(plot, package = NULL) :
htmhelp = TRUE is deprecated: use help_type =html

I know the help system has changed significantly in 2.10.0 and I
apologize if it is poor form to report errors such as this while the
still in the beta phase,


To the contrary! The whole point of the beta phase is that it gets
tested and all errors reported -- I'll look into this, thanks for
the report.

Cheers,
Simon



but my reliance on these help functions has
prevented me from continuing to use the beta and test other changes.

BTW thank you for the option, in the new installer, to only install
the 64bit GUI version.

Thank you,

Peter

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac




___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac



[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac



--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595





--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] tiff output on Mac

2009-10-15 Thread David Winsemius

If you look at:

?png# you will see several other options

I will say that the advice on that page to use capabilities() to  
determine which of these options is supported seems to be at least  
misleading in that tiff comes back FALSE but the tiff device accepts  
input without complaint and produces output that Preview.app reads.


 sessionInfo()
R version 2.9.2 (2009-08-24)
x86_64-apple-darwin9.8.0

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base
 capabilities()
jpeg  png tifftcltk  X11 aqua http/ftp   
sockets   libxml fifo   clediticonv  NLS  profmemcairo
TRUE TRUEFALSE TRUE TRUE TRUE TRUE  
TRUE TRUE TRUE TRUE TRUE TRUEFALSE TRUE


 tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
 plot(rpois(1:100,1))
 dev.off()
null device
  1
# no errors, no problems viewing


Another option, ...  handle the translation to a tiff file by using  
Preview of hte saved pdf and then the Grab.app, or just Grab the  
quartz window. That method lets me minimize the white space in the  
margins. Tiff is the saved format from Grab.

--
David.

On Oct 15, 2009, at 1:08 PM, Michael Denslow wrote:


Dear R Mac folks,

I have not seen a thread on this so I thought I would get some input
regarding tiff output on a Mac.
I am currently running OS 10.6.1 and R 2.9.2 GUI 1.29 Tiger build 32- 
bit (5464).


I realize that the easiest way to save a plot is to select File, Save
As. Which outputs a .pdf file. However, if I insert this graphic into
Microsoft Word and send it to a friend on Windows the file gets
mangled (the quality is decreased significantly). So I am working on
just writing high quality tiff files which seem to display well all on
both platforms. Tiffs also seems to be one of the preferred file types
for many journals in my field.

Here are the options I have found that work on Macs.


# requires Ghostscript
bitmap(file=MacTest.tiff, type = tifflzw,
height = 7, width = 7, res = 600,
 units = in)
plot(rpois(1:40,10))
dev.off()


tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
plot(rpois(1:100,1))
dev.off()

quartz(height = 7, width = 7, type = 'tiff', file = 'MacTest.tiff',bg
= 'white',dpi = 600)
hist(rpois(1:100,1))
dev.off()


hist(rpois(1:100,1))
# line are not all dark in output, not sure which tiff type to use...
dev2bitmap(file = 'MacTest.tiff', type = 'tiff24nc', height = 7, width
= 7, res = 600,
units = 'in')


I have noticed that for bitmap and tiff the font and symbol size seems
to differ between the R session plot and the output plot.
Are there other graphic output options that I am missing here? Any
tips would be most appreciated.
Thanks in advance,
Michael

--
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] 2.10.0 beta help functions

2009-10-15 Thread Simon Urbanek

On Oct 15, 2009, at 17:00 , Prof Brian Ripley wrote:


On Thu, 15 Oct 2009, Simon Urbanek wrote:



On Oct 15, 2009, at 16:01 , Prof Brian Ripley wrote:


Hmm, I think you probably have pre-built html pages.


Yes, that's likely. They used to be part of the installation but  
now are not. The fact that they are missing was useful to point out  
that I forgot to switch R.app from html to dynamic help (fixed  
now), but I was actually planning on keeping them installed for  
other software that relies on it (e.g. JGR). That will give those  
packages the chance to update until R 2.11.0.


I am sure Simon knows this, but they are still optional (configure  
option --enable-prebuilt-html).  More seriously, they are pretty  
much untested and I've fixed a couple of non-trivial bugs today (so  
the HTML files need to be regenerated).


Also, I've just updated my checkout of the Mac-GUI project and  
rebuilt it, and whereas help() now works with dynamic help,  
help.search() still fails to find pages for packages not under the  
main library tree (print.hsearch in the Mac-GUI project needs  
updating).




Ok, updated (it wasn't the most beautiful piece of code before and  
it's not now but it might work).



It's your prerogative to ship prebuilt HTML pages, but they are not  
going to be shipped on Windows, and not AFAIK on Linux binary  
builds, so a fair proportion of JGR users will want an update  
anyway.  They just add to the size of the download and the vast  
majority of users will never access them.




Oh, ok -- I thought we agreed to keep them in binary distributions  
until 2.11, but if Windows doesn't ship them then there is no point,  
indeed...


Thanks,
Simon




Brian



Thanks,
Simon


I simply don't see any code that will generate them, either  
directly or by starting the httpd server to do so.
I just did some quick experiments, and I get blank pages on  
packages without pre-built html, and correct ones on a package I  
just installed with 'R CMD INSTALL --html'.

On Thu, 15 Oct 2009, Rob Goedman wrote:

Peter,
On my system (SnowLeopard, below R builds) I did see the warning
messages (but the internal help worked fine).
This morning I changed the htmlhelp settings as suggested by the
warning message ( help_type ='html' ) in main.m and rebuild  
R.app. The

warnings are gone and help still works.
Rob
-
R version 2.10.0 beta (2009-10-15 r50083)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
...
[R.app GUI 1.30 (5495) x86_64-apple-darwin9.8.0]
[Workspace restored from /Users/rob/Projects/.RData]

?ls

Warning message:
In help(ls, package = NULL) :
htmhelp = TRUE is deprecated: use help_type =html
On Oct 14, 2009, at 6:42 PM, Simon Urbanek wrote:

On Oct 14, 2009, at 7:19 PM, Peter Cowan wrote:
I just installed the nightly from r.research.att.com called R  
2.10.0

beta (2009-10-13) for leopard using the pkg installer.
When I use ?plot or help(plot) the help window opens, but is  
blank.

And, I get this warning:

?plot

Warning message:
In help(plot, package = NULL) :
htmhelp = TRUE is deprecated: use help_type =html
I know the help system has changed significantly in 2.10.0 and I
apologize if it is poor form to report errors such as this  
while the

still in the beta phase,

To the contrary! The whole point of the beta phase is that it gets
tested and all errors reported -- I'll look into this, thanks for
the report.
Cheers,
Simon

but my reliance on these help functions has
prevented me from continuing to use the beta and test other  
changes.
BTW thank you for the option, in the new installer, to only  
install

the 64bit GUI version.
Thank you,
Peter
___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


[[alternative HTML version deleted]]
___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595




--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595




___
R-SIG-Mac mailing 

Re: [R-SIG-Mac] tiff output on Mac

2009-10-15 Thread Simon Urbanek


On Oct 15, 2009, at 13:08 , Michael Denslow wrote:


Dear R Mac folks,

I have not seen a thread on this so I thought I would get some input
regarding tiff output on a Mac.
I am currently running OS 10.6.1 and R 2.9.2 GUI 1.29 Tiger build 32- 
bit (5464).


I realize that the easiest way to save a plot is to select File, Save
As. Which outputs a .pdf file. However, if I insert this graphic into
Microsoft Word and send it to a friend on Windows the file gets
mangled (the quality is decreased significantly). So I am working on
just writing high quality tiff files which seem to display well all on
both platforms. Tiffs also seems to be one of the preferred file types
for many journals in my field.



PNG is the format of choice these days and better supported in  
general. TIFF is more rare, but there is some support.


If you want 1:1 result of what you see in the Quartz window then the  
best way is to use quartz.save() as it maintains sizes to produce  
WYSIWYG results, e.g:


quartz.save(foo.tif,tiff,dpi=600)

Cheers,
Simon



Here are the options I have found that work on Macs.


# requires Ghostscript
bitmap(file=MacTest.tiff, type = tifflzw,
height = 7, width = 7, res = 600,
 units = in)
plot(rpois(1:40,10))
dev.off()


tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
plot(rpois(1:100,1))
dev.off()

quartz(height = 7, width = 7, type = 'tiff', file = 'MacTest.tiff',bg
= 'white',dpi = 600)
hist(rpois(1:100,1))
dev.off()


hist(rpois(1:100,1))
# line are not all dark in output, not sure which tiff type to use...
dev2bitmap(file = 'MacTest.tiff', type = 'tiff24nc', height = 7, width
= 7, res = 600,
units = 'in')


I have noticed that for bitmap and tiff the font and symbol size seems
to differ between the R session plot and the output plot.
Are there other graphic output options that I am missing here? Any
tips would be most appreciated.
Thanks in advance,
Michael

--
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac




___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] tiff output

2009-10-15 Thread Carl Witthoft
Personally I'd actually recommend saving the graphic in whatever is the 
highest-quality format you can, then open it in GraphicConverter and use 
that app to save a copy in tiff format.


It is a shame that there's still no tiff file tool in R (rtiff is old, 
bonged up, and ugly :-( ).  Matlab and GraphicConverter (and I believe 
GIMP) have no problem opening  converting tiffs.  We just need some 
energetic R-fan to code up a tool.




r-sig-mac-requ...@stat.math.ethz.ch wrote:


Date: Thu, 15 Oct 2009 13:08:19 -0400
From: Michael Denslow michael.dens...@gmail.com
Subject: [R-SIG-Mac] tiff output on Mac
To: r-sig-mac@stat.math.ethz.ch
Message-ID:
b440a3f80910151008k1f931e10u7f5e9c6081c5a...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1

Dear R Mac folks,

I have not seen a thread on this so I thought I would get some input
regarding tiff output on a Mac.



Here are the options I have found that work on Macs.


# requires Ghostscript
bitmap(file=MacTest.tiff, type = tifflzw,
height = 7, width = 7, res = 600,
  units = in)
plot(rpois(1:40,10))
dev.off()


tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
plot(rpois(1:100,1))
dev.off()

quartz(height = 7, width = 7, type = 'tiff', file = 'MacTest.tiff',bg
= 'white',dpi = 600)
hist(rpois(1:100,1))
dev.off()


hist(rpois(1:100,1))
# line are not all dark in output, not sure which tiff type to use...
dev2bitmap(file = 'MacTest.tiff', type = 'tiff24nc', height = 7, width
= 7, res = 600,
units = 'in')


I have noticed that for bitmap and tiff the font and symbol size seems
to differ between the R session plot and the output plot.
Are there other graphic output options that I am missing here? Any
tips would be most appreciated.
Thanks in advance,
Michael



___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] tiff output on Mac

2009-10-15 Thread Michael Denslow
 Dear R Mac folks,

 I have not seen a thread on this so I thought I would get some input
 regarding tiff output on a Mac.
 I am currently running OS 10.6.1 and R 2.9.2 GUI 1.29 Tiger build 32-bit
 (5464).

 I realize that the easiest way to save a plot is to select File, Save
 As. Which outputs a .pdf file. However, if I insert this graphic into
 Microsoft Word and send it to a friend on Windows the file gets
 mangled (the quality is decreased significantly). So I am working on
 just writing high quality tiff files which seem to display well all on
 both platforms. Tiffs also seems to be one of the preferred file types
 for many journals in my field.


 PNG is the format of choice these days and better supported in general. TIFF
 is more rare, but there is some support.

 If you want 1:1 result of what you see in the Quartz window then the best
 way is to use quartz.save() as it maintains sizes to produce WYSIWYG
 results, e.g:

 quartz.save(foo.tif,tiff,dpi=600)

 Cheers,
 Simon

Thank you David and Simon,

This is very helpful. I was not aware of quartz.save() or the Grab utility.
Also I will have another look at the png format.

Michael



 Here are the options I have found that work on Macs.


 # requires Ghostscript
 bitmap(file=MacTest.tiff, type = tifflzw,
        height = 7, width = 7, res = 600,
     units = in)
 plot(rpois(1:40,10))
 dev.off()


 tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
 plot(rpois(1:100,1))
 dev.off()

 quartz(height = 7, width = 7, type = 'tiff', file = 'MacTest.tiff',bg
 = 'white',dpi = 600)
 hist(rpois(1:100,1))
 dev.off()


 hist(rpois(1:100,1))
 # line are not all dark in output, not sure which tiff type to use...
 dev2bitmap(file = 'MacTest.tiff', type = 'tiff24nc', height = 7, width
 = 7, res = 600,
        units = 'in')


 I have noticed that for bitmap and tiff the font and symbol size seems
 to differ between the R session plot and the output plot.
 Are there other graphic output options that I am missing here? Any
 tips would be most appreciated.
 Thanks in advance,




-- 
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org

___
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac