SCM Repository

[latticeextra] Diff of /pkg/man/panel.quantile.Rd
 [latticeextra] / pkg / man / panel.quantile.Rd

Diff of /pkg/man/panel.quantile.Rd

revision 83, Tue Jan 12 04:40:38 2010 UTC revision 143, Tue May 25 06:54:57 2010 UTC
# Line 5  Line 5
5  }  }
6  \description{  \description{
7    Plot a quantile regression line with standard error bounds, using the    Plot a quantile regression line with standard error bounds, using the
8    \pkg{quantreg} package. This is based on the \code{\link[ggplot2]{stat_quantile}}    \pkg{quantreg} package. This is based on the
9    function from \pkg{ggplot2}.    \code{\link[ggplot2]{stat_quantile}} function from \pkg{ggplot2}.
10  }  }
11  \usage{  \usage{
12  panel.quantile(x, y, form = y ~ x, method = "rq", ...,  panel.quantile(x, y, form = y ~ x, method = "rq", ...,
# Line 30  Line 30
30    \item{form, method}{    \item{form, method}{
31      the model is constructed (approximately) as      the model is constructed (approximately) as
32      \code{method(form, tau = tau, data = list(x=x, y=y), ...)}.      \code{method(form, tau = tau, data = list(x=x, y=y), ...)}.

33      See the Examples section for common choices.      See the Examples section for common choices.
34    }    }
35    \item{\dots}{    \item{\dots}{
# Line 96  Line 95
95
96  xyplot(y ~ x, xy) +  xyplot(y ~ x, xy) +
97    layer(panel.quantile(x, y, tau = c(.5, .9, .1), superpose = TRUE))    layer(panel.quantile(x, y, tau = c(.5, .9, .1), superpose = TRUE))

98  update(trellis.last.object(),  update(trellis.last.object(),
99    auto.key = list(text = paste(c(50,90,10), "\% quantile"),    auto.key = list(text = paste(c(50,90,10), "\% quantile"),
100                    points = FALSE, lines = TRUE))                    points = FALSE, lines = TRUE))

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