test11 test10 R-Forge: Extra Utilities for Lattice Graphics: SCM Repository

# 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 129, Thu Apr 15 07:21:59 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 \code{\link{stat_quantile}}
9    function from \pkg{ggplot2}.    function from \pkg{ggplot2}.
10  }  }
11  \usage{  \usage{
# 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}{
36      further arguments passed on to the model function (\code{method}),      further arguments passed on to the model function (\code{method}),
38    }    }
39    \item{tau}{    \item{tau}{
40      \var{p} values for the quantiles to estimate.      \var{p} values for the quantiles to estimate.
# Line 45  Line 44
44    }    }
45    \item{ci, ci.type, level}{    \item{ci, ci.type, level}{
46      estimate a confidence interval at level \code{level} using the      estimate a confidence interval at level \code{level} using the
48    }    }
49    \item{n}{    \item{n}{
50      number of equi-spaced points on which to evaluate the function.      number of equi-spaced points on which to evaluate the function.
# Line 71  Line 70
70  \author{  \author{
71    Felix Andrews \email{felix@nfrac.org}    Felix Andrews \email{felix@nfrac.org}
72
74  }  }
75  \seealso{  \seealso{
79  }  }
80  \examples{  \examples{
81  library("quantreg")  library("quantreg")
# 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.129