Vous êtes sur la page 1sur 1

> f=factor(c(5,4,4,0,3,7,2,1,2,4,5,6,2,9,2,4,8,3,0,5,7,2,3,8,6,2,6,5,2,1)

+ )
> h=table(f)
> h
f
0 1 2 3 4 5 6 7 8 9
2 2 7 3 4 4 3 2 2 1
> barplot(h)
> polygon(h)
> points(c(1/4,3/4,1/2),c(0,0,0))
> boxplot(h)
Error in Axis.table(x = c(1, 2, 2.5, 4, 7), side = 2) :
seulement pour des tableaux 1-D
> boxplot(h)
Error in Axis.table(x = c(1, 2, 2.5, 4, 7), side = 2) :
seulement pour des tableaux 1-D
> f[1,1]
Error in `[.default`(f, 1, 1) : nombre de dimensions incorrect
> h[1,1]
Error in `[.default`(h, 1, 1) : nombre de dimensions incorrect
> x=c(2,2,7,4,4,3,2,2,1)
> curve(x/30)

Vous aimerez peut-être aussi