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 61, Mon Dec 21 03:52:43 2009 UTC revision 64, Mon Dec 21 06:37:33 2009 UTC
# Line 24  Line 24 
24    \item{x, y}{    \item{x, y}{
25      data points. If these are missing, they will be looked for in the      data points. If these are missing, they will be looked for in the
26      \code{formula} environment. So in many cases you can skip these if      \code{formula} environment. So in many cases you can skip these if
27      passing \code{formula}.      passing \code{formula}. In fact, for convenience, the \code{formula}
28        can be passed as the first argument (i.e. \code{x}).
29    }    }
30    \item{formula, method}{    \item{formula, method}{
31      the model is constructed (approximately) as      the model is constructed (approximately) as
# Line 65  Line 66 
66    }    }
67  }  }
68  \details{  \details{
69      It is recommended to look at \code{vignette("rq",package="quantreg")}.
70  }  }
71  \author{  \author{
72    Felix Andrews \email{felix@nfrac.org}    Felix Andrews \email{felix@nfrac.org}
73    
74      Based on \code{\link[ggplot2]{stat_quantile}} by Hadley Wickham.
75  }  }
76  \seealso{  \seealso{
77    \code{\link[quantreg]{rq}},    \code{\link[quantreg]{rq}},
# Line 80  Line 83 
83  xyplot(y ~ x, xy) +  xyplot(y ~ x, xy) +
84    layer(panel.quantile(x, y, tau = c(.05, .5, .95)))    layer(panel.quantile(x, y, tau = c(.05, .5, .95)))
85    
86    if (require("splines")) {
87  xyplot(y ~ x, xy) +  xyplot(y ~ x, xy) +
88    layer(panel.quantile(form = y ~ ns(x, 3), tau = 0.5))      layer(panel.quantile(y ~ ns(x, 3), tau = 0.9))
89    
90  xyplot(y ~ x, xy) +  xyplot(y ~ x, xy) +
91    layer(panel.quantile(form = y ~ ns(x, 3), ci = TRUE))      layer(panel.quantile(y ~ ns(x, 3), tau = 0.9, ci = TRUE))
92    }
93    
94  xyplot(y ~ x, xy) +  xyplot(y ~ x, xy) +
95    layer(panel.quantile(x, y, tau = c(.1, .5, .9), superpose = TRUE))    layer(panel.quantile(x, y, tau = c(.1, .5, .9), superpose = TRUE))
# Line 95  Line 100 
100    
101  ## seems not to work...  ## seems not to work...
102  #xyplot(y ~ x, xy) +  #xyplot(y ~ x, xy) +
103  #  layer(panel.quantile(form = y ~ qss(x, lambda=1), method = "rqss"))  #  layer(panel.quantile(y ~ qss(x, lambda=1), method = "rqss"))
104  }  }
105  \keyword{ dplot }  \keyword{ dplot }

Legend:
Removed from v.61  
changed lines
  Added in v.64

R-Forge@R-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge