Skip to content

Cairo pdf canvas size

8 messages · Eduardo de Oliveira Horta, David Winsemius, Peter Langfelder +1 more

#
On Jan 5, 2011, at 9:38 PM, Eduardo de Oliveira Horta wrote:

            
OS?,  ... example?

==

David Winsemius, MD
West Hartford, CT
#
On Jan 5, 2011, at 10:35 PM, Eduardo de Oliveira Horta wrote:

            
'frraid I an't help ya' padna'

First I tried your code:

 > Cairo("example.pdf",  
type="pdf",width=12,height=12,units="cm",dpi=300)
Error: could not find function "Cairo"

Then I tried:

 > cairo_pdf("example.pdf",  
type="pdf",width=12,height=12,units="cm",dpi=300)
Error in cairo_pdf("example.pdf", type = "pdf", width = 12, height =  
12,  :
   unused argument(s) (type = "pdf", units = "cm", dpi = 300)

So I guess someone with your as yet unstated OS can take over now.
#
On Wed, Jan 5, 2011 at 7:35 PM, Eduardo de Oliveira Horta
<eduardo.oliveirahorta at gmail.com> wrote:
Wow, you must like light colors :)

To the point, just set margins, for example

par(mar = c(2,2,0.5, 0.5))

(margins are bottom, left, top, right)

after the Cairo command.

BTW, Cairo doesn't work for me either... but I tried your example by
plotting to the screen.

Peter




 Notice how the canvas' margins are relatively far from the plotting area.
#
Thanks!
On Thu, Jan 6, 2011 at 7:13 PM, Dennis Murphy <djmuser at gmail.com> wrote: