R For Mac Os X Faq
Please read R for Mac OS X FAQ (see Help) section 9 and adjust your system preferences accordingly. History restored from /Users/nemo/.Rapp.history. Blank page in onenote for mac pdf.
Hi,
In the FAQ for Mac http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html
there is
7.2 Saving the image
You can can (???) the content of the quartz device window into a PDF file.
This is not explained!
This is a very simple way to export high quality graphics from R into
other applications on Mac OS X graphics is PDF based (so are almost all
applications available). However, this process uses R's PDF device and
not Mac OS X PDF facilities and thus doesn't yeild (???)
an exact copy of the device contents. For Mac-native solution, see (see
Copying the image into the clipboard
<http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Copying-the-image-into-the-clipboard>)
and quartz.save command.
------------------------------------------------------------------------
7.3 Copying the image into the clipboard
You can copy the content of the quartz device window in the clipboard to
make the resulting image available for pasting into other applications.
The clipboard will contain both a PDF versiond (???) and a bitmap
version of the quartz device window. Which version will be used depends
on the pasting applications, most modern application will prefer the PDF
version which is of higher quality as it supports vector graphics.
In the menu bar of the quartz window > 'Edit' the copy command is
active, but the is no choice in 'File' for saving the pdf !
Note that there is currently a difference between using the clipboard
and saving to a PDF file (see Saving the image
<http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Saving-the-image>).
The latter will use R's PDF device which will not yield WYSIWYG results.
However, using quartz.save ..
There is no function quartz.save in 2-15-1 !
Thanks for correcting the errors in the text and for enlighten me an
quartz.save.
Christian
PS I wrote the following function for saving the quartz window (thanks
author{Ray Brownrigg email{[hidden email]}):
pdfc <- function (file = 'Rplot.pdf', ..) {
current.device <- dev.cur()
dev.off(dev.copy(device = pdf, file = file, ..))
dev.set(current.device)
print(paste(file, 'generated.'))
}
-- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland
Rigiblickstrasse 15 b, Tel.+41-44-7640853 [hidden email],
[hidden email], www.echoffmann.ch
[[alternative HTML version deleted]]
______________________________________________
[hidden email] 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.
In the FAQ for Mac http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html
there is
7.2 Saving the image
You can can (???) the content of the quartz device window into a PDF file.
This is not explained!
This is a very simple way to export high quality graphics from R into
other applications on Mac OS X graphics is PDF based (so are almost all
applications available). However, this process uses R's PDF device and
not Mac OS X PDF facilities and thus doesn't yeild (???)
an exact copy of the device contents. For Mac-native solution, see (see
Copying the image into the clipboard
<http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Copying-the-image-into-the-clipboard>)
and quartz.save command.
------------------------------------------------------------------------
7.3 Copying the image into the clipboard
You can copy the content of the quartz device window in the clipboard to
make the resulting image available for pasting into other applications.
The clipboard will contain both a PDF versiond (???) and a bitmap
version of the quartz device window. Which version will be used depends
on the pasting applications, most modern application will prefer the PDF
version which is of higher quality as it supports vector graphics.
In the menu bar of the quartz window > 'Edit' the copy command is
active, but the is no choice in 'File' for saving the pdf !
Note that there is currently a difference between using the clipboard
and saving to a PDF file (see Saving the image
<http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Saving-the-image>).
The latter will use R's PDF device which will not yield WYSIWYG results.
However, using quartz.save ..
There is no function quartz.save in 2-15-1 !
Thanks for correcting the errors in the text and for enlighten me an
quartz.save.
Christian
PS I wrote the following function for saving the quartz window (thanks
author{Ray Brownrigg email{[hidden email]}):
pdfc <- function (file = 'Rplot.pdf', ..) {
current.device <- dev.cur()
dev.off(dev.copy(device = pdf, file = file, ..))
dev.set(current.device)
print(paste(file, 'generated.'))
}
-- Christian W. Hoffmann, CH - 8915 Hausen am Albis, Switzerland
Rigiblickstrasse 15 b, Tel.+41-44-7640853 [hidden email],
[hidden email], www.echoffmann.ch
[[alternative HTML version deleted]]
______________________________________________
[hidden email] 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.