[R] PostScript File Dimensions
David Winsemius
dwinsemius at comcast.net
Sat Nov 15 18:57:21 CET 2008
You may be new to R but that does not mean you should stay "new" to
the help pages. It looks as though postscript() is ignoring your
setEPS efforts,,, with perfectly legitimate reason since that is not a
defined parameter for that function. It is a separate function. What
happens when you use the height= and width= parameters that the
postscript help page defines for you? That "worked" for me (on a Mac
OS X 10.5.5/ R2.8.0-64bit GUI device). Or you could try executing
setEPS before your postscript call.
Further questions, as is always the case with output sorts of
questions, should include your systemInfo. This is an example in the
help page with an added plot. to make the otherwise blank 4 x 3 eps
file look more interesting:
> postscript("cm_test.eps", width = 4.0, height = 3.0,
+ horizontal = FALSE, onefile = FALSE, paper = "special",
+ family = "ComputerModern", encoding = "TeXtext.enc")
> plot(1:10,10:1)
> dev.off()
--
David Winsemius
Heritage Labs
On Nov 15, 2008, at 9:00 AM, Rodrigo Aluizio wrote:
> Hi List, here I go again.
>
> Well I need to save plotted objects as .eps using the postscript()
> function,
> well I can do that but all resulting object are perfect squared
> dimensions
> (x = y). I need a rectangular output something like x = 2y
> dimension. Is it
> possible? The I’m new to R and postscript image format!
>
>
>
> I’m doing this…
>
>
>
> postscript('ClusterWardBC.eps',setEPS(),bg='white')
>
> plot(WardBC,which.plots=2,main='Living Fauna')
>
> dev.off()
>
>
>
> and I got the square image
>
>
>
> I tried this to solve
>
>
>
> postscript
> ('ClusterWardBC.eps',setEPS(width=600,height=300),bg='white')
>
> plot(WardBC,which.plots=2,main='Living Fauna')
>
> dev.off()
>
>
>
> and I got and output but any software or printer can handle it. So
> it’s
> useless.
>
>
>
> Any ideas?!
>
>
>
> Ps.: The plotted object is a cluster tree, but it also occurs with
> other
> plots I’ve done.
>
>
>
> Thank you for the attention.
>
> ___________________________________
> MSc. <mailto:r.aluizio at gmail.com> Rodrigo Aluizio
> Centro de Estudos do Mar/UFPR
> Laboratório de Micropaleontologia
> Avenida Beira Mar s/n - CEP 83255-000
> Pontal do Paraná - PR - BRASIL
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
More information about the R-help
mailing list