On Mon, 2 Mar 2009, Benoit Boulinguiez wrote:
> Hi all,
>
> I've got a density graph made with the following commands:
>
> win.graph(width=13,height=6)
The preferred name is windows().
> 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
How exactly? I know at least three ways to do that. I am guessing
that as you didn't tell us you were on Windows, you also didn't tell
us that you used the menu on the windows() device, but these details
do matter.
> I've got that
> http://www.4shared.com/file/90283115/490b7383/density_v_1.html
>
> what am I doing wrong?
Not telling us what you don't like about this plot.
I think you should consider using dev.copy2eps(), which will give you
more control. Or even better, calling postscript() directly.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595