[R] handle graph size in eps

Benoit Boulinguiez benoit.boulinguiez at ensc-rennes.fr
Mon Mar 2 10:40:32 CET 2009


Hi all,
 
I've got a density graph made with the following commands:

win.graph(width=13,height=6)
par (
 fin=c(13,3)
 ,mai=c(1,1,0.5,0.5)
 ,mfrow=c(1,2)
 ,cex.axis=1.5
 ,cex.lab=1.5)
 
dens<-density(DATA1.y[2,]-mean(DATA1.y[2,]),kernel="gaussian")
 
xlimit<-range(dens$x)
ylimit<-range(dens$y)
hist(
 DATA1.y[2,]-mean(DATA1.y[2,])
 ,xlim=1.1*xlimit
 ,xlab=expression(q[e])
 ,ylim=1.1*ylimit
 ,probability=T
 ,main="Random distribution around y")
lines(dens,col=2,)
rm(dens,xlimit,ylimit)
 
qqnorm(DATA1.x[1,])

that's what I've on the screen and I'm OK with that.
http://www.4shared.com/file/90283562/9f27d83b/screen.html

When I save the graph in eps format I've got that
http://www.4shared.com/file/90283115/490b7383/density_v_1.html


what am I doing wrong?

Regards
Benoit




More information about the R-help mailing list