SCM

SCM Repository

[latticeextra] Diff of /www/man/layer.html
ViewVC logotype

Diff of /www/man/layer.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 142, Tue May 18 05:26:54 2010 UTC revision 143, Tue May 25 06:54:57 2010 UTC
# Line 24  Line 24 
24  layer(..., data, magicdots, exclude,  layer(..., data, magicdots, exclude,
25        packets, rows, columns, groups,        packets, rows, columns, groups,
26        style, force, theme, under, superpose,        style, force, theme, under, superpose,
27          update,
28        eval, etc) ## these 2 deprecated        eval, etc) ## these 2 deprecated
29    
30  layer_(...)  layer_(...)
# Line 129  Line 130 
130  <code>panel.superpose</code>. This defaults to <code>TRUE</code> in the  <code>panel.superpose</code>. This defaults to <code>TRUE</code> in the
131  convenience functions <code>glayer()</code> and <code>glayer_()</code>.  convenience functions <code>glayer()</code> and <code>glayer_()</code>.
132  </td></tr>  </td></tr>
133    <tr valign="top"><td><code>update</code></td>
134    <td>
135    
136    an optional <code>list</code> of arguments to update the trellis plot with
137    (passed to <code>update.trellis</code>) before the layer is drawn.
138    </td></tr>
139  <tr valign="top"><td><code>eval, etc</code></td>  <tr valign="top"><td><code>eval, etc</code></td>
140  <td>  <td>
141    
# Line 273  Line 280 
280    
281    
282  ## layers with superposed styles  ## layers with superposed styles
283  zoip &lt;- xyplot(ozone ~ wind | equal.count(temperature, 2),  xyplot(ozone ~ wind | equal.count(temperature, 2),
284          data = environmental) +          data = environmental) +
285     layer(panel.loess(x, y, span = 0.5), style = 1) +     layer(panel.loess(x, y, span = 0.5), style = 1) +
286     layer(panel.loess(x, y, span = 1.0), style = 2)     layer(panel.loess(x, y, span = 1.0), style = 2) +
287  update(zoip, auto.key = list(text = c("span = 0.5", "span = 1.0"),     layer(panel.key(c("span = 0.5", "span = 1.0"), corner = c(1,.98),
288     title = "loess smooth", lines = TRUE, points = FALSE))                     lines = TRUE, points = FALSE), packets = 1)
289    
290  ## note that styles come from the settings in effect in the plot,  ## note that styles come from the settings in effect in the plot,
291  ## which is not always what you want:  ## which is not always what you want:
# Line 308  Line 315 
315  qua &lt;- xyplot(lat ~ long | cut(depth, 2), quakes,  qua &lt;- xyplot(lat ~ long | cut(depth, 2), quakes,
316      aspect = "iso", pch = ".", cex = 2)      aspect = "iso", pch = ".", cex = 2)
317  qua  qua
   
318  ## add layer showing distance from Auckland  ## add layer showing distance from Auckland
319  newdat &lt;- with(quakes, expand.grid(  newdat &lt;- with(quakes, expand.grid(
320              gridlat = seq(min(lat), max(lat), length = 60),              gridlat = seq(min(lat), max(lat), length = 60),
# Line 319  Line 325 
325     contour = TRUE, subscripts = TRUE), data = newdat)     contour = TRUE, subscripts = TRUE), data = newdat)
326  </pre>  </pre>
327    
328  <div align="center">[Package <em>latticeExtra</em> version 0.6-10 <a href="00Index.html">Index</a>]</div>  <div align="center">[Package <em>latticeExtra</em> version 0.6-12 <a href="00Index.html">Index</a>]</div>
329  </body></html>  </body></html>

Legend:
Removed from v.142  
changed lines
  Added in v.143

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