SCM

SCM Repository

[latticeextra] View of /www/index.html
ViewVC logotype

View of /www/index.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, 2 months ago) by felix
File size: 39263 byte(s)
get rid of ".featured_example", just use example number
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>latticeExtra R package</title>
  <link href="main.css" media="screen" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  <script type="text/javascript" src="nav.js"></script>
</head>
<body>

<!-- NOTE: THE FILE index.html IS GENERATED FROM template.html -->


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2193730-7");
pageTracker._trackPageview();
} catch(err) {}</script>


<div id="banner">
<h1>latticeExtra</h1>
</div>

<div id="themer">
  <a href="#" id="theme_default">default</a> <a href="#" id="theme_black_and_white">black and white</a> <a href="#" id="theme_custom_theme">custom theme</a> <a href="#" id="theme_custom_theme_2">custom theme 2</a> <a href="#" id="theme_theEconomist">theEconomist</a> <a href="#" id="theme_classic_gray">classic gray</a>
</div>

<div id="nav">
<ul>
<li>
  <a href="#"
     title="Information about the latticeExtra package"
     class="navitem active"
     id="nav_intro">introduction</a>
</li>
<li>
  <a href="#INDEX"
     title="Index"
     class="navitem"
     id="nav_INDEX">index</a>
</li>
<li class="navhead"><a href="#">general statistical plots</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#rootogram" title="Trellis Displays of Tukey's Hanging Rootograms" id="nav_rootogram">rootogram</a>
</li>
<li>
<a class="navitem" href="#segplot" title="Plot segments using the Trellis framework" id="nav_segplot">segplot</a>
</li>
<li>
<a class="navitem" href="#ecdfplot" title="Trellis Displays of Empirical CDF" id="nav_ecdfplot">ecdfplot</a>
</li>
<li>
<a class="navitem" href="#marginal.plot" title="Display marginal distributions" id="nav_marginal.plot">marginal.plot</a>
</li>
</ul></li>
<li class="navhead"><a href="#">functions of one variable</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#xyplot.stl" title="Display stl fits with Lattice" id="nav_xyplot.stl">xyplot.stl</a>
</li>
<li>
<a class="navitem" href="#panel.smoother" title="Plot a smoothing line with standard error bounds." id="nav_panel.smoother">panel.smoother</a>
</li>
<li>
<a class="navitem" href="#panel.quantile" title="Plot a quantile regression line with standard error bounds." id="nav_panel.quantile">panel.quantile</a>
</li>
<li>
<a class="navitem" href="#panel.xblocks" title="Plot contiguous blocks along x axis." id="nav_panel.xblocks">panel.xblocks</a>
</li>
<li>
<a class="navitem" href="#panel.xyarea" title="Plot series as filled polygons." id="nav_panel.xyarea">panel.xyarea</a>
</li>
<li>
<a class="navitem" href="#panel.tskernel" title="Calculate and plot smoothed time series." id="nav_panel.tskernel">panel.tskernel</a>
</li>
<li>
<a class="navitem" href="#horizonplot" title="Plot many time series in parallel" id="nav_horizonplot">horizonplot</a>
</li>
</ul></li>
<li class="navhead"><a href="#">functions of two variables</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#mapplot" title="Trellis displays on Maps a.k.a. Choropleth maps" id="nav_mapplot">mapplot</a>
</li>
<li>
<a class="navitem" href="#tileplot" title="Plot a spatial mosaic from irregular 2D points" id="nav_tileplot">tileplot</a>
</li>
<li>
<a class="navitem" href="#panel.levelplot.points" title="Panel functions for level-coded irregular points" id="nav_panel.levelplot.points">panel.levelplot.points</a>
</li>
<li>
<a class="navitem" href="#panel.2dsmoother" title="Plot a smooth approximation of z over x and y." id="nav_panel.2dsmoother">panel.2dsmoother</a>
</li>
<li>
<a class="navitem" href="#dendrogramGrob" title="Create a Grob Representing a Dendrogram" id="nav_dendrogramGrob">dendrogramGrob</a>
</li>
</ul></li>
<li class="navhead"><a href="#">utilities</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#useOuterStrips" title="Put Strips on the Boundary of a Lattice Display" id="nav_useOuterStrips">useOuterStrips</a>
</li>
<li>
<a class="navitem" href="#resizePanels" title="Resize panels to match data scales" id="nav_resizePanels">resizePanels</a>
</li>
<li>
<a class="navitem" href="#panel.ablineq" title="Draw a line with a label, by default its equation" id="nav_panel.ablineq">panel.ablineq</a>
</li>
<li>
<a class="navitem" href="#panel.scaleArrow" title="Draw a scale bar as an arrow, labelled with its length in plot units." id="nav_panel.scaleArrow">panel.scaleArrow</a>
</li>
<li>
<a class="navitem" href="#panel.3dmisc" title="Miscellanous panel utilities for three dimensional Trellis Displays" id="nav_panel.3dmisc">panel.3dmisc</a>
</li>
</ul></li>
<li class="navhead"><a href="#">extended trellis framework</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#layer" title="Add layers to a Trellis plot, optionally using a new data source" id="nav_layer">layer</a>
</li>
<li>
<a class="navitem" href="#as.layer" title="Overlay panels of Trellis plots on same or different scales" id="nav_as.layer">as.layer</a>
</li>
<li>
<a class="navitem" href="#doubleYScale" title="Draw two plot series with different y scales" id="nav_doubleYScale">doubleYScale</a>
</li>
<li>
<a class="navitem" href="#c.trellis" title="Merge trellis objects, using same or different scales" id="nav_c.trellis">c.trellis</a>
</li>
</ul></li>
<li class="navhead"><a href="#">styles</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#style_example" title="This is a sample plot to demonstrate different graphical settings (themes)." id="nav_style_example">style example</a>
</li>
<li>
<a class="navitem" href="#custom.theme" title="Create a lattice theme based on specified colors" id="nav_custom.theme">custom.theme</a>
</li>
<li>
<a class="navitem" href="#theEconomist.theme" title="Generate plots with style like The Economist." id="nav_theEconomist.theme">theEconomist.theme</a>
</li>
</ul></li>
<li class="navhead"><a href="#">data</a></li>
<li class="navgroup"><ul>
<li>
<a class="navitem" href="#USAge" title="US national population estimates" id="nav_USAge">USAge</a>
</li>
<li>
<a class="navitem" href="#USCancerRates" title="Rate of Death Due to Cancer in US Counties" id="nav_USCancerRates">USCancerRates</a>
</li>
<li>
<a class="navitem" href="#ancestry" title="Modal ancestry by County according to US 2000 Census" id="nav_ancestry">ancestry</a>
</li>
<li>
<a class="navitem" href="#postdoc" title="Reasons for Taking First Postdoctoral Appointment" id="nav_postdoc">postdoc</a>
</li>
<li>
<a class="navitem" href="#biocAccess" title="Hourly access attempts to Bioconductor website" id="nav_biocAccess">biocAccess</a>
</li>
<li>
<a class="navitem" href="#gvhd10" title="Flow cytometry data from five samples from a patient" id="nav_gvhd10">gvhd10</a>
</li>
<li>
<a class="navitem" href="#SeatacWeather" title="Daily Rainfall and Temperature at the Seattle-Tacoma Airport" id="nav_SeatacWeather">SeatacWeather</a>
</li>
<li>
<a class="navitem" href="#EastAuClimate" title="Climate of the East Coast of Australia" id="nav_EastAuClimate">EastAuClimate</a>
</li>
</ul></li>
</ul>
</div>

<div id="content_container">
<div id="content">

  <div class="item" id="intro">
    <h2 class="itemname">introduction</h2>

    <p><strong>latticeExtra</strong> is an R package (i.e. a package for the <a href="http://www.R-project.org/">R statistical computing environment</a>), providing functions for generating statistical graphics. It extends the <a href="http://cran.r-project.org/package=lattice">Lattice framework</a> (<strong>lattice</strong> package), which is an implementation of Trellis graphics in R.</p>

    <p>Many of the functions and datasets in <strong>latticeExtra</strong> are described in Deepayan Sarkar's book, <a href="http://lmdvr.r-forge.r-project.org/">Lattice: Multivariate Data Visualization with R</a>. The book web site also includes figures and code. </p> 

    <p>This site serves as a reference for the R functions and datasets in the package. 
    <!--A gentler introduction can be found in the vignettes ............ -->
    The help pages for all functions are also available as a PDF
    document -- the "Reference manual" -- from any CRAN mirror (see link below).
    </p>

    <p>The package is maintained by Deepayan Sarkar and Felix Andrews.</p>

    <p>For more information, see
    <ul>
      <li>
	<a href="http://r-forge.r-project.org/projects/latticeextra/">latticeExtra project repository</a>
      </li>
      <li>
	<a href="http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/*checkout*/pkg/inst/NEWS?root=latticeextra">NEWS from development version</a>
      </li>
      <li>
	<a href="http://cran.r-project.org/package=latticeExtra">latticeExtra on CRAN</a>
      </li>
      <li>
	<a href="http://crantastic.org/packages/latticeExtra">latticeExtra on crantastic</a>
      </li>
    </ul>
    </p>

  </div>

  <div class="item" id="INDEX">
    <h2 class="itemname">index</h2>
    <table>
<tr><td><a href="#ancestry">ancestry</a></td><td>Modal ancestry by County according to US 2000 Census</td></tr>
<tr><td><a href="#as.layer">as.layer</a></td><td>Overlay panels of Trellis plots on same or different scales</td></tr>
<tr><td><a href="#biocAccess">biocAccess</a></td><td>Hourly access attempts to Bioconductor website</td></tr>
<tr><td><a href="#c.trellis">c.trellis</a></td><td>Merge trellis objects, using same or different scales</td></tr>
<tr><td><a href="#custom.theme">custom.theme</a></td><td>Create a lattice theme based on specified colors</td></tr>
<tr><td><a href="#dendrogramGrob">dendrogramGrob</a></td><td>Create a Grob Representing a Dendrogram</td></tr>
<tr><td><a href="#doubleYScale">doubleYScale</a></td><td>Draw two plot series with different y scales</td></tr>
<tr><td><a href="#EastAuClimate">EastAuClimate</a></td><td>Climate of the East Coast of Australia</td></tr>
<tr><td><a href="#ecdfplot">ecdfplot</a></td><td>Trellis Displays of Empirical CDF</td></tr>
<tr><td><a href="#gvhd10">gvhd10</a></td><td>Flow cytometry data from five samples from a patient</td></tr>
<tr><td><a href="#horizonplot">horizonplot</a></td><td>Plot many time series in parallel</td></tr>
<tr><td><a href="#layer">layer</a></td><td>Add layers to a Trellis plot, optionally using a new data source</td></tr>
<tr><td><a href="#mapplot">mapplot</a></td><td>Trellis displays on Maps a.k.a. Choropleth maps</td></tr>
<tr><td><a href="#marginal.plot">marginal.plot</a></td><td>Display marginal distributions</td></tr>
<tr><td><a href="#panel.2dsmoother">panel.2dsmoother</a></td><td>Plot a smooth approximation of z over x and y.</td></tr>
<tr><td><a href="#panel.3dmisc">panel.3dmisc</a></td><td>Miscellanous panel utilities for three dimensional Trellis Displays</td></tr>
<tr><td><a href="#panel.ablineq">panel.ablineq</a></td><td>Draw a line with a label, by default its equation</td></tr>
<tr><td><a href="#panel.levelplot.points">panel.levelplot.points</a></td><td>Panel functions for level-coded irregular points</td></tr>
<tr><td><a href="#panel.quantile">panel.quantile</a></td><td>Plot a quantile regression line with standard error bounds.</td></tr>
<tr><td><a href="#panel.scaleArrow">panel.scaleArrow</a></td><td>Draw a scale bar as an arrow, labelled with its length in plot units.</td></tr>
<tr><td><a href="#panel.smoother">panel.smoother</a></td><td>Plot a smoothing line with standard error bounds.</td></tr>
<tr><td><a href="#panel.tskernel">panel.tskernel</a></td><td>Calculate and plot smoothed time series.</td></tr>
<tr><td><a href="#panel.xblocks">panel.xblocks</a></td><td>Plot contiguous blocks along x axis.</td></tr>
<tr><td><a href="#panel.xyarea">panel.xyarea</a></td><td>Plot series as filled polygons.</td></tr>
<tr><td><a href="#postdoc">postdoc</a></td><td>Reasons for Taking First Postdoctoral Appointment</td></tr>
<tr><td><a href="#resizePanels">resizePanels</a></td><td>Resize panels to match data scales</td></tr>
<tr><td><a href="#rootogram">rootogram</a></td><td>Trellis Displays of Tukey's Hanging Rootograms</td></tr>
<tr><td><a href="#SeatacWeather">SeatacWeather</a></td><td>Daily Rainfall and Temperature at the Seattle-Tacoma Airport</td></tr>
<tr><td><a href="#segplot">segplot</a></td><td>Plot segments using the Trellis framework</td></tr>
<tr><td><a href="#style example">style example</a></td><td>This is a sample plot to demonstrate different graphical settings (themes).</td></tr>
<tr><td><a href="#theEconomist.theme">theEconomist.theme</a></td><td>Generate plots with style like The Economist.</td></tr>
<tr><td><a href="#tileplot">tileplot</a></td><td>Plot a spatial mosaic from irregular 2D points</td></tr>
<tr><td><a href="#USAge">USAge</a></td><td>US national population estimates</td></tr>
<tr><td><a href="#USCancerRates">USCancerRates</a></td><td>Rate of Death Due to Cancer in US Counties</td></tr>
<tr><td><a href="#useOuterStrips">useOuterStrips</a></td><td>Put Strips on the Boundary of a Lattice Display</td></tr>
<tr><td><a href="#xyplot.stl">xyplot.stl</a></td><td>Display stl fits with Lattice</td></tr>
</table>
  </div>

  <h1 class="groupname">general statistical plots</h1>
<div class="item" id="rootogram">
  <h2 class="itemname">
rootogram
  </h2>
  <div class="itemdesc">
Trellis Displays of Tukey's Hanging Rootograms
  </div>
  <p>
  <a href="man/rootogram.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/rootogram.png" alt="rootogram" width="500" height="350"/>
  <pre class="itemcode">
rootogram(~x, dfun = function(x) dpois(x, lambda = 50))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/rootogram.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="segplot">
  <h2 class="itemname">
segplot
  </h2>
  <div class="itemdesc">
Plot segments using the Trellis framework
  </div>
  <p>
  <a href="man/segplot.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/segplot.png" alt="segplot" width="400" height="500"/>
  <pre class="itemcode">
segplot(reorder(factor(county), rate.male) ~ LCL95.male + UCL95.male, 
    data = subset(USCancerRates, state == "Washington"), draw.bands = FALSE, 
    cente....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/segplot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="ecdfplot">
  <h2 class="itemname">
ecdfplot
  </h2>
  <div class="itemdesc">
Trellis Displays of Empirical CDF
  </div>
  <p>
  <a href="man/ecdfplot.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/ecdfplot.png" alt="ecdfplot" width="500" height="350"/>
  <pre class="itemcode">
ecdfplot(~height | voice.part, data = singer)
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/ecdfplot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="marginal.plot">
  <h2 class="itemname">
marginal.plot
  </h2>
  <div class="itemdesc">
Display marginal distributions
  </div>
  <p>
  <a href="man/marginal.plot.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/marginal.plot.png" alt="marginal.plot" width="500" height="350"/>
  <pre class="itemcode">
marginal.plot(enviro[, 1:5], data = enviro, groups = is.windy, 
    auto.key = list(lines = TRUE))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/marginal.plot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>



  <h1 class="groupname">functions of one variable</h1>
<div class="item" id="xyplot.stl">
  <h2 class="itemname">
xyplot.stl
  </h2>
  <div class="itemdesc">
Display stl fits with Lattice
  </div>
  <p>
  <a href="man/xyplot.stl.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/xyplot.stl.png" alt="xyplot.stl" width="500" height="500"/>
  <pre class="itemcode">
xyplot(stl(log(co2), s.window = 21), main = "STL decomposition of CO2 data")
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/timeseries.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.smoother">
  <h2 class="itemname">
panel.smoother
  </h2>
  <div class="itemdesc">
Plot a smoothing line with standard error bounds.
  </div>
  <p>
  <a href="man/panel.smoother.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.smoother.png" alt="panel.smoother" width="500" height="350"/>
  <pre class="itemcode">
xyplot(y + y2 ~ x, xy) + glayer(panel.smoother(...))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.smoother.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.quantile">
  <h2 class="itemname">
panel.quantile
  </h2>
  <div class="itemdesc">
Plot a quantile regression line with standard error bounds.
  </div>
  <p>
  <a href="man/panel.quantile.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.quantile.png" alt="panel.quantile" width="500" height="350"/>
  <pre class="itemcode">
update(xyplot(y ~ x, xy) + layer(panel.quantile(x, y, tau = c(0.5, 
    0.9, 0.1), superpose = TRUE)), auto.key = list(text = paste(c(50, 
    90, 10), "% qua....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.quantile.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.xblocks">
  <h2 class="itemname">
panel.xblocks
  </h2>
  <div class="itemdesc">
Plot contiguous blocks along x axis.
  </div>
  <p>
  <a href="man/panel.xblocks.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.xblocks.png" alt="panel.xblocks" width="600" height="200"/>
  <pre class="itemcode">
xyplot(flow ~ flowdates, type = "l") + layer_(panel.xblocks(x, 
    months, col = c("lightgray", "#e6e6e6"), border = "darkgray"))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.xblocks.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.xyarea">
  <h2 class="itemname">
panel.xyarea
  </h2>
  <div class="itemdesc">
Plot series as filled polygons.
  </div>
  <p>
  <a href="man/panel.xyarea.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.xyarea.png" alt="panel.xyarea" width="500" height="350"/>
  <pre class="itemcode">
xyplot(ts.union(data = sunspot.year, lag10 = lag(sunspot.year, 
    10)), aspect = "xy", cut = list(n = 3, overlap = 0), superpose = TRUE, 
    panel = panel.....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.xyarea.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.tskernel">
  <h2 class="itemname">
panel.tskernel
  </h2>
  <div class="itemdesc">
Calculate and plot smoothed time series.
  </div>
  <p>
  <a href="man/panel.tskernel.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.tskernel.png" alt="panel.tskernel" width="500" height="350"/>
  <pre class="itemcode">
xyplot(sunspot.year) + layer(panel.tskernel(x, y, width = 20, 
    c = 3, col = 1, lwd = 2))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.tskernel.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="horizonplot">
  <h2 class="itemname">
horizonplot
  </h2>
  <div class="itemdesc">
Plot many time series in parallel
  </div>
  <p>
  <a href="man/horizonplot.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/horizonplot.png" alt="horizonplot" width="500" height="550"/>
  <pre class="itemcode">
horizonplot(sunspots, cut = list(n = 23, overlap = 0), scales = list(y = list(relation = "same"), 
    draw = FALSE), origin = 100, strip.left = FALSE, layou....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/horizonplot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>



  <h1 class="groupname">functions of two variables</h1>
<div class="item" id="mapplot">
  <h2 class="itemname">
mapplot
  </h2>
  <div class="itemdesc">
Trellis displays on Maps a.k.a. Choropleth maps
  </div>
  <p>
  <a href="man/mapplot.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/mapplot.png" alt="mapplot" width="600" height="350"/>
  <pre class="itemcode">
mapplot(county ~ log10(population), ancestry, map = county.map, 
    colramp = NULL)
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/mapplot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="tileplot">
  <h2 class="itemname">
tileplot
  </h2>
  <div class="itemdesc">
Plot a spatial mosaic from irregular 2D points
  </div>
  <p>
  <a href="man/tileplot.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/tileplot.png" alt="tileplot" width="500" height="350"/>
  <pre class="itemcode">
tileplot(z ~ x * y, xyz, border = "black", col.regions = grey.colors(100), 
    pch = ifelse(is.na(xyz$z), 4, 21), panel = function(...) {
        panel.fill(....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/tileplot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.levelplot.points">
  <h2 class="itemname">
panel.levelplot.points
  </h2>
  <div class="itemdesc">
Panel functions for level-coded irregular points
  </div>
  <p>
  <a href="man/panel.voronoi.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.levelplot.points.png" alt="panel.levelplot.points" width="600" height="350"/>
  <pre class="itemcode">
levelplot(depth ~ long + lat | Magnitude, data = quakes.ordered, 
    panel = panel.levelplot.points, type = c("p", "g"), aspect = "iso", 
    prepanel = prep....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/tileplot.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.2dsmoother">
  <h2 class="itemname">
panel.2dsmoother
  </h2>
  <div class="itemdesc">
Plot a smooth approximation of z over x and y.
  </div>
  <p>
  <a href="man/panel.2dsmoother.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.2dsmoother.png" alt="panel.2dsmoother" width="500" height="350"/>
  <pre class="itemcode">
levelplot(z ~ x * y, xyz, panel = panel.levelplot.points, cex = 1.2) + 
    layer_(panel.2dsmoother(..., n = 200))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.2dsmoother.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="dendrogramGrob">
  <h2 class="itemname">
dendrogramGrob
  </h2>
  <div class="itemdesc">
Create a Grob Representing a Dendrogram
  </div>
  <p>
  <a href="man/dendrogramGrob.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/dendrogramGrob.png" alt="dendrogramGrob" width="500" height="550"/>
  <pre class="itemcode">
levelplot(x[row.ord, col.ord], aspect = "fill", scales = list(x = list(rot = 90)), 
    colorkey = list(space = "left"), legend = list(right = list(fun = den....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/dendrogramGrob.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>



  <h1 class="groupname">utilities</h1>
<div class="item" id="useOuterStrips">
  <h2 class="itemname">
useOuterStrips
  </h2>
  <div class="itemdesc">
Put Strips on the Boundary of a Lattice Display
  </div>
  <p>
  <a href="man/useOuterStrips.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/useOuterStrips.png" alt="useOuterStrips" width="500" height="350"/>
  <pre class="itemcode">
xyplot(mpg ~ disp | HP + factor(cyl), mtcars, layout = dimx, 
    par.strip.text = list(lines = 0.5), strip = new.strip, strip.left = new.strip.left, 
    par....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/utilities.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="resizePanels">
  <h2 class="itemname">
resizePanels
  </h2>
  <div class="itemdesc">
Resize panels to match data scales
  </div>
  <p>
  <a href="man/resizePanels.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/resizePanels.png" alt="resizePanels" width="400" height="550"/>
  <pre class="itemcode">
dotplot(state.name ~ Frost | reorder(state.region, Frost), data = state, 
    layout = c(1, 4), scales = list(y = list(relation = "free")), 
    par.settings ....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/utilities.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.ablineq">
  <h2 class="itemname">
panel.ablineq
  </h2>
  <div class="itemdesc">
Draw a line with a label, by default its equation
  </div>
  <p>
  <a href="man/panel.lmlineq.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.ablineq.png" alt="panel.ablineq" width="500" height="350"/>
  <pre class="itemcode">
update(xyplot(ysim ~ xsim) + layer(panel.ablineq(lm(y ~ x), r.sq = TRUE, 
    rot = TRUE, at = 0.8, pos = 3), style = 1) + layer(panel.ablineq(lm(y ~ 
    x +....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.lmlineq.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.scaleArrow">
  <h2 class="itemname">
panel.scaleArrow
  </h2>
  <div class="itemdesc">
Draw a scale bar as an arrow, labelled with its length in plot units.
  </div>
  <p>
  <a href="man/panel.scaleArrow.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.scaleArrow.png" alt="panel.scaleArrow" width="500" height="400"/>
  <pre class="itemcode">
xyplot(EuStockMarkets) + layer(panel.scaleArrow(x = 0.99, append = " units", 
    col = "grey", srt = 90, cex = 0.8))
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.scaleArrow.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="panel.3dmisc">
  <h2 class="itemname">
panel.3dmisc
  </h2>
  <div class="itemdesc">
Miscellanous panel utilities for three dimensional Trellis Displays
  </div>
  <p>
  <a href="man/panel.3dmisc.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/panel.3dmisc.png" alt="panel.3dmisc" width="500" height="400"/>
  <pre class="itemcode">
cloud(as.table(prop.table(Titanic, margin = 1:3)[, , , 2]), type = c("p", 
    "h"), zlab = "ProportionnSurvived", panel.3d.cloud = panel.3dbars, 
    xbase ....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/panel.3dmisc.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>



  <h1 class="groupname">extended trellis framework</h1>
<div class="item" id="layer">
  <h2 class="itemname">
layer
  </h2>
  <div class="itemdesc">
Add layers to a Trellis plot, optionally using a new data source
  </div>
  <p>
  <a href="man/layer.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/layer.png" alt="layer" width="500" height="350"/>
  <pre class="itemcode">
qua + layer_(panel.contourplot(x = gridlon, y = gridlat, z = dist, 
    contour = TRUE, subscripts = TRUE), data = newdat)
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/layer.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="as.layer">
  <h2 class="itemname">
as.layer
  </h2>
  <div class="itemdesc">
Overlay panels of Trellis plots on same or different scales
  </div>
  <p>
  <a href="man/as.layer.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/as.layer.png" alt="as.layer" width="500" height="350"/>
  <pre class="itemcode">
xyplot(fdeaths ~ mdeaths) + as.layer(bwplot(~mdeaths, box.ratio = 0.2), 
    y.same = FALSE)
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/doubleYScale.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="doubleYScale">
  <h2 class="itemname">
doubleYScale
  </h2>
  <div class="itemdesc">
Draw two plot series with different y scales
  </div>
  <p>
  <a href="man/doubleYScale.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/doubleYScale.png" alt="doubleYScale" width="500" height="350"/>
  <pre class="itemcode">
doubleYScale(obj1, obj2, add.ylab2 = TRUE)
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/doubleYScale.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="c.trellis">
  <h2 class="itemname">
c.trellis
  </h2>
  <div class="itemdesc">
Merge trellis objects, using same or different scales
  </div>
  <p>
  <a href="man/c.trellis.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/c.trellis.png" alt="c.trellis" width="600" height="350"/>
  <pre class="itemcode">
update(c(xyplot(lat ~ long | equal.count(depth, 3), quakes, aspect = "iso", 
    pch = ".", cex = 2, xlab = NULL, ylab = NULL), histogram(quakes$depth), 
    ....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/c.trellis.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>



  <h1 class="groupname">styles</h1>
<div class="item" id="style_example">
  <h2 class="itemname">
style example
  </h2>
  <div class="itemdesc">
This is a sample plot to demonstrate different graphical settings (themes).
  </div>

  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/style_example.png" alt="style example" width="500" height="350"/>
  <pre class="itemcode">
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width, 
    iris, type = c("p", "r"), jitter.x = TRUE, jitter.y = TRUE, 
    factor = 5, auto.key = l....
  </pre>

</div>

<div class="item" id="custom.theme">
  <h2 class="itemname">
custom.theme
  </h2>
  <div class="itemdesc">
Create a lattice theme based on specified colors
  </div>
  <p>
  <a href="man/custom.theme.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/custom.theme.png" alt="custom.theme" width="500" height="350"/>
  <pre class="itemcode">
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length + Petal.Width, 
    iris, type = c("p", "r"), jitter.x = TRUE, jitter.y = TRUE, 
    factor = 5, auto.key = l....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/custom.theme.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>

<div class="item" id="theEconomist.theme">
  <h2 class="itemname">
theEconomist.theme
  </h2>
  <div class="itemdesc">
Generate plots with style like The Economist.
  </div>
  <p>
  <a href="man/theEconomist.theme.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/theEconomist.theme.png" alt="theEconomist.theme" width="500" height="350"/>
  <pre class="itemcode">
trellis.last.object() + layer_(panel.xblocks(x, x >= 1980, col = "#6CCFF6", 
    alpha = 0.5)) + layer(panel.text(1988, 180, "Forecast", font = 3, 
    pos = ....
  </pre>
<p><a href="http://r-forge.r-project.org/scm/viewvc.php/pkg/R/theeconomist.R?view=markup&root=lattice" class="codelink">Source code</a></p>
</div>



  <h1 class="groupname">data</h1>
<div class="item" id="USAge">
  <h2 class="itemname">
USAge
  </h2>
  <div class="itemdesc">
US national population estimates
  </div>
  <p>
  <a href="man/USAge.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/USAge.png" alt="USAge" width="500" height="350"/>
  <pre class="itemcode">
xyplot(Population ~ Age | factor(Year), USAge.df, groups = Sex, 
    type = c("l", "g"), auto.key = list(points = FALSE, lines = TRUE, 
        columns = 2), ....
  </pre>

</div>

<div class="item" id="USCancerRates">
  <h2 class="itemname">
USCancerRates
  </h2>
  <div class="itemdesc">
Rate of Death Due to Cancer in US Counties
  </div>
  <p>
  <a href="man/USCancerRates.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/USCancerRates.png" alt="USCancerRates" width="600" height="350"/>
  <pre class="itemcode">
mapplot(rownames(USCancerRates) ~ log(rate.male) + log(rate.female), 
    data = USCancerRates, map = map("county", plot = FALSE, fill = TRUE, 
        projec....
  </pre>

</div>

<div class="item" id="ancestry">
  <h2 class="itemname">
ancestry
  </h2>
  <div class="itemdesc">
Modal ancestry by County according to US 2000 Census
  </div>
  <p>
  <a href="man/ancestry.html" class="helplink">
Usage, Details, Examples
</a>
  </p>


</div>

<div class="item" id="postdoc">
  <h2 class="itemname">
postdoc
  </h2>
  <div class="itemdesc">
Reasons for Taking First Postdoctoral Appointment
  </div>
  <p>
  <a href="man/postdoc.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/postdoc.png" alt="postdoc" width="500" height="350"/>
  <pre class="itemcode">
barchart(prop.table(postdoc, margin = 1), auto.key = TRUE, xlab = "Proportion")
  </pre>

</div>

<div class="item" id="biocAccess">
  <h2 class="itemname">
biocAccess
  </h2>
  <div class="itemdesc">
Hourly access attempts to Bioconductor website
  </div>
  <p>
  <a href="man/biocAccess.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/biocAccess.png" alt="biocAccess" width="500" height="550"/>
  <pre class="itemcode">
xyplot(stl(ts(biocAccess$counts[1:(24 * 30)], frequency = 24), 
    "periodic"))
  </pre>

</div>

<div class="item" id="gvhd10">
  <h2 class="itemname">
gvhd10
  </h2>
  <div class="itemdesc">
Flow cytometry data from five samples from a patient
  </div>
  <p>
  <a href="man/gvhd10.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/gvhd10.png" alt="gvhd10" width="500" height="500"/>
  <pre class="itemcode">
histogram(~log2(FSC.H) | Days, gvhd10, xlab = "log Forward Scatter", 
    type = "density", nint = 50, layout = c(2, 4))
  </pre>

</div>

<div class="item" id="SeatacWeather">
  <h2 class="itemname">
SeatacWeather
  </h2>
  <div class="itemdesc">
Daily Rainfall and Temperature at the Seattle-Tacoma Airport
  </div>
  <p>
  <a href="man/SeatacWeather.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/SeatacWeather.png" alt="SeatacWeather" width="500" height="350"/>
  <pre class="itemcode">
doubleYScale(temp, rain, style1 = 0, style2 = 3, add.ylab2 = TRUE, 
    text = c("min. T", "max. T", "rain"), columns = 3)
  </pre>

</div>

<div class="item" id="EastAuClimate">
  <h2 class="itemname">
EastAuClimate
  </h2>
  <div class="itemdesc">
Climate of the East Coast of Australia
  </div>
  <p>
  <a href="man/EastAuClimate.html" class="helplink">
Usage, Details, Examples
</a>
  </p>
  <p>One example:</p>
  <img src="http://150.203.60.53/latticeExtra/plots/default/EastAuClimate.png" alt="EastAuClimate" width="500" height="350"/>
  <pre class="itemcode">
segplot(Latitude ~ WinterMinTemp + SummerMaxTemp, EastAuClimate, 
    main = "Average daily temperature ranges n of coastal Australian sites", 
    ylab = "L....
  </pre>

</div>



<script type="text/javascript">
var imageSrcBase = "http://150.203.60.53/latticeExtra/";
</script>

</div>

<div id="versiontag">
latticeExtra version 0.6-12 on R version 2.11.0 (at 2010-05-25)
</div>

</div>

<div id="tagline">
  <p>fonts by <a href="http://www.exljbris.nl">exljbris</a><br/>
  web dev by 
  <a href="http://www.neurofractal.org/felix/">felix andrews</a></p>
</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