From ehlers at ucalgary.ca  Fri Oct  2 21:36:33 2009
From: ehlers at ucalgary.ca (Peter Ehlers)
Date: Fri, 02 Oct 2009 13:36:33 -0600
Subject: [Rd] lattice's mai/mar analog
In-Reply-To: <fa05c18161156.4ac0b589@bgu.ac.il>
References: <mailman.18.1254132007.21828.r-devel@r-project.org>
	<fa05c18161156.4ac0b589@bgu.ac.il>
Message-ID: <4AC65641.2060107@ucalgary.ca>



Michael Ramati wrote:
> hello,
> is there a way to control figure margins using package lattice, similarly to parameters mai/mar (which presumbly works only for figures of package graphics)?
> thanks!?
> 

Try it this way:

  library(lattice)
  trellis.device()
  trellis.par.set(list(
     layout.widths  = list(left.padding = 8, right.padding = 9),
     layout.heights = list(top.padding = 10, bottom.padding = 11)))

  xyplot(Sepal.Length ~ Petal.Length | Species, data = iris)

Use

  trellis.par.get()

and check the layout.heights/widths sections. You can adjust
the spacing between the labels and the axis, etc. The paddings
are ordered from extreme left to extreme right. Ditto for top
to bottom.

See

  ?trellis.par.set for how to set up the options.

  -Peter Ehlers


> 	[[alternative HTML version deleted]]
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] lattice's mai/mar analog
Peter Ehlers