SCM

SCM Repository

[latticeextra] View of /www/man/useOuterStrips.html
ViewVC logotype

View of /www/man/useOuterStrips.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 143 - (download) (as text) (annotate)
Tue May 25 06:54:57 2010 UTC (9 years, 1 month ago) by felix
File size: 2581 byte(s)
get rid of ".featured_example", just use example number
<html><head><title>R: Put Strips on the Boundary of a Lattice Display</title>


</head><body>

<table width="100%" summary="page for useOuterStrips {latticeExtra}"><tr><td>useOuterStrips {latticeExtra}</td><td align="right">R Documentation</td></tr></table>

<h2>Put Strips on the Boundary of a Lattice Display</h2>


<h3>Description</h3>

<p>
</p>
<p>
Try to update a <code>"trellis"</code> object so that strips are only
shown on the top and left boundaries when printed, instead of in every
panel as is usual.  This is only meaningful when there are exactly tow
conditioning variables.
</p>
<p>
</p>


<h3>Usage</h3>

<pre>

useOuterStrips(x,
               strip = strip.default,
               strip.left = strip.custom(horizontal = FALSE),
               strip.lines = 1,
               strip.left.lines = strip.lines)

</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
 An object of class <code>"trellis"</code>. </td></tr>
<tr valign="top"><td><code>strip, strip.left</code></td>
<td>
 A function, character string or logical that
would be appropriate <code>strip</code> and <code>strip.left</code> arguments
respectively in a high level lattice function call (see
<code>xyplot</code>) </td></tr>
<tr valign="top"><td><code>strip.lines, strip.left.lines</code></td>
<td>
 height of strips in number of
lines; helpful for multi-line text or mathematical annotation in
strips. </td></tr>
</table>


<h3>Details</h3>

<p>
<code>useOuterStrips</code> modifies a <code>"trellis"</code> object with
<code>length(dim(x)) == 2</code> so that when plotted, strips are only shown
on the top and left boundaries of the panel layout, rather than on top
of every panel, as is the usual behaviour.
</p>
<p>
</p>


<h3>Value</h3>

<p>
</p>
<p>
An object of class <code>"trellis"</code>; essentially the same as <code>x</code>,
but with certain properties modified.
</p>
<p>
</p>


<h3>Author(s)</h3>

<p> Deepayan Sarkar </p>


<h3>See Also</h3>

<p> <code>Lattice</code>,
<code>xyplot</code> </p>


<h3>Examples</h3>

<pre>

library(lattice)

mtcars$HP &lt;- equal.count(mtcars$hp)

useOuterStrips(xyplot(mpg ~ disp | HP + factor(cyl), mtcars))

useOuterStrips(xyplot(mpg ~ disp | factor(cyl) + HP, mtcars),
               strip.left = FALSE,
               strip = strip.custom(style = 4))

</pre>

<div align="center">[Package <em>latticeExtra</em> version 0.6-12 <a href="00Index.html">Index</a>]</div>
</body></html>

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge