Re: [R] aligning column of xyplots and removing space between them

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Thu 13 Oct 2005 - 06:40:23 EST

On 10/11/05, Gabor Grothendieck <ggrothendieck@gmail.com> wrote:
> On 10/11/05, Deepayan Sarkar <deepayan.sarkar@gmail.com> wrote:
> > On 10/11/05, Gabor Grothendieck <ggrothendieck@gmail.com> wrote:
> > > Thanks. That works although the alignment is still not perfect.
> > > I am attaching the saved image in both .png and .emf formats
> > > so you can see what I mean. Its not far off but its noticeable.
> > >
> > > In .emf format a portion of the bounding box does not come out
> > > either and it comes out bluish rather than white. Not sure if such
> > > attachments can survive the list but I have sent you a copy too just
> > > in case.
> >
> > [I have no way to easily view the emf file, but] I can't see any
> > reason for the misalignment in the PNG file (other than a driver or
> > rendering bug). Do you see it in PDF output as well?
>
> Yes, it can be seen on the PDF version too (see attached).

Right. Looks like the horizontal paddings are to blame now. The defaults are in terms of "snpc" units, which produce different physical units. The simplest workaround is to set them to 0 too, e.g.

theme.novpadding <-
  list(layout.heights =

       list(top.padding = 0,
	    main.key.padding = 0,
	    key.axis.padding = 0,
	    axis.xlab.padding = 0,
	    xlab.key.padding = 0,
	    key.sub.padding = 0,
	    bottom.padding = 0),
       layout.widths =
       list(left.padding = 0,
	    key.ylab.padding = 0,
	    ylab.axis.padding = 0,
	    axis.key.padding = 0,
	    right.padding = 0))

-Deepayan



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Oct 13 06:44:45 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:49:06 EST