The R Project SVN R

Rev

Rev 61153 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61153 Rev 61168
Line 75... Line 75...
75
lines(lowess(cars))
75
lines(lowess(cars))
76
 
76
 
77
plot(sin, -pi, 2*pi) # see ?plot.function
77
plot(sin, -pi, 2*pi) # see ?plot.function
78
 
78
 
79
## Discrete Distribution Plot:
79
## Discrete Distribution Plot:
80
plot(table(rpois(100,5)), type = "h", col = "red", lwd = 10,
80
plot(table(rpois(100, 5)), type = "h", col = "red", lwd = 10,
81
     main = "rpois(100,lambda=5)")
81
     main = "rpois(100, lambda = 5)")
82
 
82
 
83
## Simple quantiles/ECDF, see ecdf() {library(stats)} for a better one:
83
## Simple quantiles/ECDF, see ecdf() {library(stats)} for a better one:
84
plot(x <- sort(rnorm(47)), type = "s", main = "plot(x, type = \"s\")")
84
plot(x <- sort(rnorm(47)), type = "s", main = "plot(x, type = \"s\")")
85
points(x, cex = .5, col = "dark red")
85
points(x, cex = .5, col = "dark red")
86
}
86
}