Displaying 20 results from an estimated 600 matches similar to: "Legend on plots when using Cairo"
2011 Feb 15
1
Cairo device won't output the PNG
Hi All,
I have been experiencing a strange issue ever since I upgraded my R and the packages. I cannot plot anything to the CairoPNG device.For an example:> Cairo(600, 600, file="plot.png", type="png", bg="white")> plot(1:10)> dev.off()will create an empty plot.png file. I am running R 2.12.1 (32bit) on Windows 7 (64bit).
----------------------------->
2013 Oct 21
2
png(type='cairo'): point symbols without boarders are not anti-aliased?
Hi,
It seems that anti-aliasing in png(type = 'cairo') is not well
supported for the point symbols without boarders, e.g. pch = 16. The
Cairo package works well, though. You can compare png() with
CairoPNG():
png(): http://i.imgur.com/8niB3jX.png
CairoPNG(): http://i.imgur.com/FZBJOxm.png
f = function(dev, ..., main = '') {
dev(...)
plot(c(1, 2, 1, 2), c(1, 1, 2, 2),
2009 Jun 05
1
Antialiasing plots and text on different devices
I have a question about antialiasing when R generates bitmaps. (This follows
a thread on the ggplot2 mailing list.)
I mostly use R on Linux, although I sometimes use it in Mac and Windows as
well. On Linux, I've found that plotting shapes 15-18 via cairo results in
bad-looking output. The points are not antialiased, and they are jagged and
misshapen. Plots generated in Windows also aren't
2009 Oct 22
1
Cairo package, png files within for loop are black?
Hello,
I am generating .png images using the Cairo package in a for loop
(looping on the number of zones, number of zones equals the number of
plots to create based on different zone data). When I run the R
script the .png files are created but they are all black? If I comment
out the for loop and force my zones to equal one the png file is created
correctly? Is there an issue with
2008 Mar 06
1
order the plots using lattice
Dear all,
I am running something similar to this short example:
library("lattice")
library("geneplotter")
X=matrix(cbind(1:100,100:1,c(1:50,50:1)),ncol=3)
Y=matrix(cbind(1:100,1:100,1:100),ncol=3)
names=1:3
dummy.df = data.frame(names = factor(names, levels = names),
x = seq_along(names),
y = seq_along(names))
xyplot(y ~ x | names, dummy.df,
xlim = c(1,100),
2007 Sep 27
1
Cairo on windows
Hi All,
I just installed Cairo on R 2.5.1 on windows XP. My hope was to get to see
the transparency output e.g. http://had.co.nz/ggplot2/stat_smooth.html
ggplot2 - stat_smooth , which I finally managed to do. However, I find the
Cairo device, which I access either through CairoWin() or Cairo(type="win"),
is pretty shaky in a number of respects :
- whatever portion of the Cairo
2008 Jul 19
1
Clash between 'Cairo' and 'EBImage' packages on Windows
Hi,
on Windows XP Pro with R version 2.7.1 Patched (2008-06-27 r46012) the
'Cairo' and the 'EBImage' packages does not play well together.
Loading EBImage before Cairo cause the following to happen:
# Rterm --vanilla
> library(EBImage);
> library(Cairo)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library
2009 Jun 09
1
Cairo Package Installation
I am trying to install the Cairo package on a linux machine, the Cairo
package did not install correctly (could not find cairo.h), I am new to
R and linux any help on the installation would be great. Below are
output from trying to install the Cairo package, thought this might help.
> install.packages("Cairo")
Warning in install.packages("Cairo") :
argument
2009 May 22
1
Cannot Install Cairo Library
Dear All,
I am running Debian testing on my box and I have R 2.9.0 installed from
the standard repositories.
I downloaded the package source from
http://cran.r-project.org/web/packages/Cairo/index.html
but when I try to install it on my system, this is what I get
$ sudo R CMD INSTALL Cairo_1.4-4.tar.gz
* Installing to library ?/usr/local/lib/R/site-library?
* Installing *source* package ?Cairo?
2010 Jun 17
1
No graphics capability on fresh install of R2.11.0 on FreeBSD 8.0
G'day all,
I am working on a new FreeBSD 8.0 Server (remotely located), and have installed (now several times) R 2.11.0 but I cannot get any graphic outputs (everything else seems to be happening fine...)
During install I have noticed and checked that png, jpeg, cairo etc libraries are available - here is the build output :
R is now configured for amd64-portbld-freebsd8.0
Source
2009 Jul 21
1
problem installing cairo on freebsd
G'day all,
I am trying to install the cairo package on FreeBSD and receiving an
error to do with Makevars - (I'm not very good at this stuff) so here
is my various bits of information. I guess this is a problem with a
missing library, but I have just been through a lot of grief trying to
get png and jpeg to work (they do now work!), so I'm not sure where to
go for this.
R
2010 Jan 28
1
quartz() and dpi
Hello all,
I am using quartz (on OS X obviously) to produce PDFs and PNGs from my
plots, for later inclusion in LaTeX.
I am typically using something like:
plot(0)
dev.print(quartz, file="foo.pdf", width=5, height=3)
dev.print(quartz, file="foo.png", width=5, height=3, dpi=72)
I want the sizes of the PDF and PNG to be *equal* in *inches*, which
works with dpi=72. However,
2010 Jun 04
1
strange behaviour of CairoPNG
Hi,
could it be that the text() fuction gives different output for normal
png() and CarioPNG()?
See the following example and the attached images: the font=2 and
font=3 seem to be exchanged!
Thanks for help,
Thomas
CairoPNG("Test-cairo.png",width=750,height=690)
#png("Test-normal.png",width=750,height=690)
plot(1,1,type="n",main="normal")
2009 Jan 30
1
Methods not loaded in R-Devel vs 2.8.1
Dear list-member,
I am currently developing a package with S4 classes. The NAMESPACE and DESCRIPTION is printed below. Within this package I have set a method "residuals" for two classes. In version 2.8.1 these two are reported whereas in R-Devel (2009-01-28 r47766). What have I missed? What has changed and how can I rectify the issue? Your help and pointers are welcome.
For 2.8.1:
2010 Mar 25
0
Error in png concerning 'type = "cairo"'
Dear R-users,
though i have successfully installed Cairo_1.4-5 package on
my Ubuntu machine,
i become the following error message:
Error in png(plot_name, width = 1600, height = 1200) :
'type = "cairo"' requires cairo >= 1.2 : try 'type =
"cairo1"'
By using
png(plot_name, width = 1600, height = 1200,type = "cairo1")
i become
Warning message:
In
2010 Jan 20
2
Plot frame border to start at zero?
Hello,
I am creating plots of hourly precipitation and accumulated
precipitation (on different axis, see attached image). I was wondering
how can I have the plot frame (black border) start at zero, it looks
like it is plotted less than zero?
The code I use to create the png files is below:
CairoPNG(PNG_file,width=1000, height=600, pointsize=14, bg="white")
opar <-
2008 Dec 19
1
package install error in CentOS
I am trying to install package "Cairo" on CentOS 5.2, but I keep getting this
error:
* Installing *source* package 'Cairo' ...
/usr/lib64/R/bin/INSTALL: ./configure: /bin/sh: bad interpreter: Permission
denied
ERROR: configuration failed for package 'Cairo'
** Removing '/usr/lib64/R/library/Cairo'
The downloaded packages are in
2008 Aug 21
2
data.frame() creates list?
I obviously don't know what I'm doing. I want to create "ByEBNum" as a
data frame, but it comes out as a list. How do I make it a data frame?
> EBNumStn <- c(673.65, 800, 1000, 1000, 800, 700, 600, 500, 400,
200, 50, 50 )
> ByEBNum <- data.frame(c(1:12),EBNumStn)
> typeof(EBNumStn)
[1] "double"
> typeof(c(1:12))
[1]
2010 Mar 19
3
strange behavior, adds new field by non-existent field
data:
> tmp1
Date HrMn Temp Q.4
1 19450101 0900 -37.0 1
2 19450101 1000 -35.9 2
3 19450101 1100 -35.9 3
4 19450101 1200 -36.4 4
5 19450101 1300 -36.4 5
6 19450101 1400 -36.4 6
7 19450101 1500 -36.4 7
8 19450101 1600 -37.5 9
Accidentally, I did this (I meant to write Q.4 instead of Q here)
> tmp1$Q[tmp1$Q!="1" & tmp1$Q!= "5"]<-NA
I would
2010 Feb 12
2
Unexpected behaviour of x[i] when i is a matrix, on Windows
Hi,
when running the following on different instances of R (Linux and
Windows), I get different results. The one for Linux seems to be the
intended / documented one. When using numeric indices rather than
characters, Windows seemed to behave as expected.
-----------On Windows--------------
x = matrix(FALSE, nrow=3, ncol=3)
colnames(x) = LETTERS[1:3]
rownames(x) = letters[1:3]
x
# A