# SCM Repository

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

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

revision 73, Wed Dec 23 06:34:58 2009 UTC revision 137, Wed Apr 21 17:41:55 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 95  Line 94
94  }  }
95
96  xyplot(y ~ x, xy) +  xyplot(y ~ x, xy) +
97    layer(panel.quantile(x, y, tau = c(.9, .5, .1), superpose = TRUE))    layer(panel.quantile(x, y, tau = c(.5, .9, .1), superpose = TRUE))
98    \dontshow{ .featured_example <- TRUE }
99  update(trellis.last.object(),  update(trellis.last.object(),
100    key = simpleKey(paste(c(90,50,10), "\% quantile"),    auto.key = list(text = paste(c(50,90,10), "\% quantile"),
101                    points = FALSE, lines = TRUE))                    points = FALSE, lines = TRUE))
102
103  ## seems not to work...  ## seems not to work...

Legend:
 Removed from v.73 changed lines Added in v.137

 root@r-forge.r-project.org ViewVC Help Powered by ViewVC 1.0.0
Thanks to: