[R] Cairo package failure to load backend
Daniel Alcock
da2 at sanger.ac.uk
Tue Apr 27 17:25:39 CEST 2010
Sorry,
It appears ,as usual, that I've been an idiot. Turns out you need to use
the Cairo command from the package cairoDevice instead of the package
Cairo, ie:
> Cairo_pdf(filename, width = 7, height = 7, pointsize = 10)
Which seems to work ok....
Sorry for any time I wasted
Dan
Daniel Alcock
Malaria Genetics (T112)
Wellcome Trust Sanger Institute
Cambridge
CB10 1SA
UK
+44 (0)1223 834244 ext. 4994
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not Eureka! But rather, "hmm.... that's funny...." --
Isaac Asimov
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of Daniel Alcock
Sent: 27 April 2010 15:48
To: r-help at r-project.org
Subject: [R] Cairo package failure to load backend
Hi R friends,
I've been attempting to create plots with multiple alpha values using
Cairo to save them on a windows (32b XP) platform as it doesn't support
more than 3 alpha values. This worked well until I wanted a postscript
file (unsupported) and as a attempted work around I installed RGtk2. So
far so good, however now when I try to use a
>CairoPDF("alpha.pdf", 6, 6, bg="transparent")
Or any
>Cairo(....)
Or
>CairoXXX(...)
Command I get (variations of):
>Error in Cairo(width, height, file, "pdf", pointsize = pointsize, bg =
bg, :
Failed to create Cairo backend!
Can someone suggest a reason/solution please
Cheers
Dan
Daniel Alcock
Malaria Genetics (T112)
Wellcome Trust Sanger Institute
Cambridge
CB10 1SA
UK
+44 (0)1223 834244 ext. 4994
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not Eureka! But rather, "hmm.... that's funny...." --
Isaac Asimov
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
______________________________________________
R-help at r-project.org 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.
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
More information about the R-help
mailing list