The R Project SVN R

Rev

Rev 61160 | Rev 64657 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61160 Rev 61168
Line 154... Line 154...
154
  \code{\link{plot.density}}, \code{\link{hist}}.
154
  \code{\link{plot.density}}, \code{\link{hist}}.
155
}
155
}
156
\examples{
156
\examples{
157
require(graphics)
157
require(graphics)
158
 
158
 
159
plot(density(c(-20, rep(0,98), 20)), xlim = c(-4, 4))# IQR = 0
159
plot(density(c(-20, rep(0,98), 20)), xlim = c(-4, 4))  # IQR = 0
160
 
160
 
161
# The Old Faithful geyser data
161
# The Old Faithful geyser data
162
d <- density(faithful$eruptions, bw = "sj")
162
d <- density(faithful$eruptions, bw = "sj")
163
d
163
d
164
plot(d)
164
plot(d)