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

SCM Repository

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

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

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

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}),
37      typically \code{\link[quantreg]{rq}}.      typically \code{\link{rq}}.
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
47      method \code{ci.type}; see \code{\link[quantreg]{predict.rq}}.      method \code{ci.type}; see \code{\link{predict.rq}}.
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    
73    Based on \code{\link[ggplot2]{stat_quantile}} by Hadley Wickham.    Based on \code{\link{stat_quantile}} by Hadley Wickham.
74  }  }
75  \seealso{  \seealso{
76    \code{\link[quantreg]{rq}},    \code{\link{rq}},
77    \code{\link{panel.smoother}},    \code{\link{panel.smoother}},
78    \code{\link[ggplot2]{stat_quantile}}    \code{\link{stat_quantile}}
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

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