Re: [R] Cairo pdf canvas size

2011-01-07 Thread Eduardo de Oliveira Horta
Thanks! On Thu, Jan 6, 2011 at 7:13 PM, Dennis Murphy djmu...@gmail.com wrote: Hi: On Thu, Jan 6, 2011 at 5:36 AM, Eduardo de Oliveira Horta eduardo.oliveiraho...@gmail.com wrote: Peter, thank you, that's what I was looking for! David, I forgot to tell you my OS. Sorry... it's Win7. I'm

Re: [R] Cairo pdf canvas size

2011-01-06 Thread Eduardo de Oliveira Horta
Peter, thank you, that's what I was looking for! David, I forgot to tell you my OS. Sorry... it's Win7. I'm running a RKWard session. And this is strange: Cairo(example.pdf, type=pdf,width=12,height=12,units=cm,dpi=300) Error: could not find function Cairo ... maybe you're not using the

Re: [R] Cairo pdf canvas size

2011-01-06 Thread Dennis Murphy
Hi: On Thu, Jan 6, 2011 at 5:36 AM, Eduardo de Oliveira Horta eduardo.oliveiraho...@gmail.com wrote: Peter, thank you, that's what I was looking for! David, I forgot to tell you my OS. Sorry... it's Win7. I'm running a RKWard session. And this is strange: Cairo(example.pdf,

[R] Cairo pdf canvas size

2011-01-05 Thread Eduardo de Oliveira Horta
Hello, I want to save a pdf plot using Cairo, but the canvas of the saved file seems too large when compared to the actual plotted area. Is there a way to control the relation between the canvas size and the size of actual plotting area? Thanks in advance, and best regards, Eduardo Horta

Re: [R] Cairo pdf canvas size

2011-01-05 Thread David Winsemius
On Jan 5, 2011, at 9:38 PM, Eduardo de Oliveira Horta wrote: Hello, I want to save a pdf plot using Cairo, but the canvas of the saved file seems too large when compared to the actual plotted area. Is there a way to control the relation between the canvas size and the size of actual

Re: [R] Cairo pdf canvas size

2011-01-05 Thread Eduardo de Oliveira Horta
Something like this: u=seq(from=-pi, to=pi, length=1000) f=sin(u) Cairo(example.pdf, type=pdf,width=12,height=12,units=cm,dpi=300) par(cex.axis=.6,col.axis=grey,ann=FALSE, lwd=.25,bty=n, las=1, tcl=-.2, mgp=c(3,.5,0)) xlim=c(-pi,pi) ylim=round(c(min(f),max(f)))

Re: [R] Cairo pdf canvas size

2011-01-05 Thread David Winsemius
On Jan 5, 2011, at 10:35 PM, Eduardo de Oliveira Horta wrote: Something like this: u=seq(from=-pi, to=pi, length=1000) f=sin(u) Cairo(example.pdf, type=pdf,width=12,height=12,units=cm,dpi=300) par(cex.axis=.6,col.axis=grey,ann=FALSE, lwd=.25,bty=n, las=1, tcl=-.2, mgp=c(3,.5,0))

Re: [R] Cairo pdf canvas size

2011-01-05 Thread Peter Langfelder
On Wed, Jan 5, 2011 at 7:35 PM, Eduardo de Oliveira Horta eduardo.oliveiraho...@gmail.com wrote: Something like this: u=seq(from=-pi, to=pi, length=1000) f=sin(u) Cairo(example.pdf, type=pdf,width=12,height=12,units=cm,dpi=300) par(cex.axis=.6,col.axis=grey,ann=FALSE, lwd=.25,bty=n, las=1,