Displaying 20 results from an estimated 25 matches for "cairo_ps".
Did you mean:
cairo_pdf
2015 Jul 14
2
Use cairo fallback resolution greater than 72dpi in cairo_pdf and cairo_ps in grDevices
Dear all,
In grDevices R functions cairo_pdf and cairo_ps it is mentioned that when transparency (alpha channels) are used in vector output, it will rasterize the PDF or postscript exported graph at a resolution of 72 dpi : https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/cairo.html
You can see the problem if you try
library(ggplot2)
cairo_p...
2015 Jul 18
0
Use cairo fallback resolution greater than 72dpi in cairo_pdf and cairo_ps in grDevices
...anual/cairo-cairo-surface-t.html for the call
you would need to add.
However, I would suggest that you generate a bitmap directly and use
that, as PostScript does not support semi-transparency.
On 14/07/2015 12:03, Tom Wenseleers wrote:
> Dear all,
> In grDevices R functions cairo_pdf and cairo_ps it is mentioned that when transparency (alpha channels) are used in vector output, it will rasterize the PDF or postscript exported graph at a resolution of 72 dpi : https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/cairo.html
>
> You can see the problem if you try
>
> librar...
2013 Feb 18
2
mtext unicode failure
Readers,
How to solve this unicode input error please?
> postscript("~/tmp/test.eps",width=100/25.4,height=100/25.4,horizontal=FALSE,onefile=TRUE,paper="special")
> testx<-seq(1:5)
> testy<-seq(1:5)
> plot(testy~testx)
> mtext('text (O?)\n more text',side=3,line=1)
Warning messages:
1: In mtext("text (O?)\n more text", side = 3, line =
2012 Jan 03
1
Options for generating editable figures?
...eate
.wmf files, which might (and I've read conflicting things about this) be
importable into PowerPoint as editable graphics.
4) I found an old suggestion in the archives that an EPS could be
imported into PowerPoint and made editable. This almost worked for me
(using Inkscape to convert a cairo_ps()-generated file to EPS) -- but
only using PowerPoint under Windows, and lots of vectors and all text
were lost along the way.
Am I on the right track? Am I missing any better pathways? I know
similar questions have come up before, but the discussions I found in
the archives were old, and mayb...
2020 Mar 30
2
Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?
...uestion. Currently, for x11() (and png() etc) the default is
> taken from X11.options(). So it is possible to set this default for a
> session, or even for an installation via one of the ?Startup mechanisms
> (e.g., an R_HOME/etc/Rprofile.site file).
>
> For svg(), cairo_pdf(), and cairo_ps(), the default is hard-coded in the
> function arguments, but I *think* they are used less as default graphics
> devices.
>
> Another option would be to try to detect Fedora and set the default
> X11.options() differently there. Two problems: I am not sure there is
> a reliable...
2009 Sep 04
1
generation of eps image
Hi,
Except the function postscript ('file_name.eps'), are there functions to generate an image file in eps format?
thanks
Carol
[[alternative HTML version deleted]]
2012 Jun 04
1
Math labels in .eps files
Dear list,
I have non-ascii labels that I want to include somethow in a .eps file for
inclusion into a LateX document. Is this possible?
What I see is that the (attached) png file looks ok but the .eps renders
all non-ascii labels at the bottom as [..].
I've searched around enough to learn that including math labels in a .eps
is a problem. Hower, is there a solution too somewhere?
2020 Mar 30
3
Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?
On Mon, 30 Mar 2020 at 04:24, Paul Murrell <paul at stat.auckland.ac.nz> wrote:
>
> Hi
>
> I have created an R branch that contains a potential fix ...
>
> https://svn.r-project.org/R/branches/R-symfam/
>
> This allows, for example, ...
>
> cairo_pdf(symbolfamily="OpenSymbol")
>
> ... to specify that the OpenSymbol family should be used as the
2020 Mar 31
1
Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?
...ntly, for x11() (and png() etc) the default is
> taken from X11.options(). So it is possible to set this default for a
> session, or even for an installation via one of the ?Startup mechanisms
> (e.g., an R_HOME/etc/Rprofile.site file).
> For svg(), cairo_pdf(), and cairo_ps(), the default is hard-coded in the
> function arguments, but I *think* they are used less as default graphics
> devices.
> Another option would be to try to detect Fedora and set the default
> X11.options() differently there. Two problems: I am not sure there is...
2020 Mar 31
0
Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?
...for x11() (and png() etc) the default is
>> taken from X11.options(). So it is possible to set this default for a
>> session, or even for an installation via one of the ?Startup mechanisms
>> (e.g., an R_HOME/etc/Rprofile.site file).
>>
>> For svg(), cairo_pdf(), and cairo_ps(), the default is hard-coded in the
>> function arguments, but I *think* they are used less as default graphics
>> devices.
>>
>> Another option would be to try to detect Fedora and set the default
>> X11.options() differently there. Two problems: I am not sure there...
2020 Mar 30
0
Plotmath on Fedora 31 broken with with pango >= 1.44 - workarounds?
...is uncommon.
Good question. Currently, for x11() (and png() etc) the default is
taken from X11.options(). So it is possible to set this default for a
session, or even for an installation via one of the ?Startup mechanisms
(e.g., an R_HOME/etc/Rprofile.site file).
For svg(), cairo_pdf(), and cairo_ps(), the default is hard-coded in the
function arguments, but I *think* they are used less as default graphics
devices.
Another option would be to try to detect Fedora and set the default
X11.options() differently there. Two problems: I am not sure there is
a reliable R code chunk for detectin...
2017 Oct 20
0
[FORGED] can't print ggplot with Chinese characters to pdf files
Hi,
Following Paul's instruction, I have installed the Cairo. I tried to run
the program, and there is no error message at all. I did see the Chinese
title in the plot if I ask my RStudio to show the plot (if I type "p1"),
but the pdf file shows the plots without the Chinese titles.
library(ggplot2)
library(gridExtra)
df1<-data.frame(x=1:2, y=3:4, z=5:6)
#p1<-ggplot(df1,
2024 Feb 29
1
R 4.3.3 is released
...report PR#18538.
* Some invalid file arguments to pictex(), postscript() and xfig()
opened a file called NA rather than throw an error. These
included postscript(NULL) (which some people expected to work
like pdf(NULL)).
* Passing filename = NA to svg(), cairo_pdf(), cairo_ps() or the
Cairo-based bitmap devices opened a file called NA: it now throws
an error.
* quartz(file = NA) opened a file called NA, including when used as
a Quartz-based bitmap device. It now gives an error.
* rank(<long vector>) now works, fixing PR#18617, thanks t...
2024 Feb 29
1
R 4.3.3 is released
...report PR#18538.
* Some invalid file arguments to pictex(), postscript() and xfig()
opened a file called NA rather than throw an error. These
included postscript(NULL) (which some people expected to work
like pdf(NULL)).
* Passing filename = NA to svg(), cairo_pdf(), cairo_ps() or the
Cairo-based bitmap devices opened a file called NA: it now throws
an error.
* quartz(file = NA) opened a file called NA, including when used as
a Quartz-based bitmap device. It now gives an error.
* rank(<long vector>) now works, fixing PR#18617, thanks t...
2024 Feb 29
1
R 4.3.3 is released
...report PR#18538.
* Some invalid file arguments to pictex(), postscript() and xfig()
opened a file called NA rather than throw an error. These
included postscript(NULL) (which some people expected to work
like pdf(NULL)).
* Passing filename = NA to svg(), cairo_pdf(), cairo_ps() or the
Cairo-based bitmap devices opened a file called NA: it now throws
an error.
* quartz(file = NA) opened a file called NA, including when used as
a Quartz-based bitmap device. It now gives an error.
* rank(<long vector>) now works, fixing PR#18617, thanks t...
2011 Oct 22
3
Sweave, cairo_pdf, CJK, ghostscript
I have had some fun in the last few days trying to put together an annotated map of China with R and some public GIS data:
http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.17.7.11/China_Choropleth_Maps.pdf/download
It is done, and rather nice... there are a few issues:
- the default pdf() device cannot do CJK with embedded fonts - and cairo_pdf() is not hooked up to
2011 Jul 08
0
R 2.13.1 is released
...ses and
corresponding reference methods (e.g., $trace()) have been added.
? xz has been updated to 5.0.3 (very minor bugfix release).
? tools::compactPDF() gets more compression (usually a little,
sometimes a lot) by using the compressed object streams of PDF
1.5.
? cairo_ps(onefile = TRUE) generates encapsulated EPS on platforms
with cairo >= 1.6.
? Binary reads (e.g. by readChar() and readBin()) are now supported
on clipboard connections. (Wish of PR#14593.)
? as.POSIXlt.factor() now passes ... to the character method
(suggestion of Jo...
2011 Jul 08
0
R 2.13.1 is released
...ses and
corresponding reference methods (e.g., $trace()) have been added.
? xz has been updated to 5.0.3 (very minor bugfix release).
? tools::compactPDF() gets more compression (usually a little,
sometimes a lot) by using the compressed object streams of PDF
1.5.
? cairo_ps(onefile = TRUE) generates encapsulated EPS on platforms
with cairo >= 1.6.
? Binary reads (e.g. by readChar() and readBin()) are now supported
on clipboard connections. (Wish of PR#14593.)
? as.POSIXlt.factor() now passes ... to the character method
(suggestion of Jo...
2017 Oct 13
4
[FORGED] can't print ggplot with Chinese characters to pdf files
Hi
By the looks of it, you need to install Cairo graphics ...
https://www.cairographics.org/download/
Paul
On 13/10/17 15:48, John wrote:
> Thanks, Paul. Following your solution, ?I got this error message:
>
> Warning message:
> In cairo_pdf("test_plot_chinese.pdf") : failed to load cairo DLL
>
> Is there anything else I need to install?
>
> Thanks,
>
2024 Apr 24
0
[Rd] R 4.4.0 is released
...n of the R code after an error.
* The non-Quartz tiff() devices allow additional types of
compression if supported by the platform's libtiff library.
* The list of base and recommended package names is now provided by
tools::standard_package_names().
* cairo_pdf() and cairo_ps() default to onefile = TRUE to closer
match pdf() and postscript().
* New option catch.script.errors provides a documented way to catch
errors and then continue in non-interactive use.
* L %||% R newly in base is an expressive idiom for the phrases
if(!is.null(L)) L else...