Vous êtes sur la page 1sur 1

> x=c(rep("sans",5),rep("premier",4),rep("second",7),rep("sup",4))

> barplot(x)
Error in -0.01 * height :
argument non num�rique pour un op�rateur binaire
> t=table(x)
> barplot(t)
> pie(x)
Error in pie(x) : les valeurs de 'x' doivent �tre positives.
> pie(t)
> x=c(5,4,4,0,3,7,2,1,2,4,5,6,2,9,2,4,8,0,0,0,5,7,2,3,8,6,2,6,5,2,1)
> t=table(x)
> t
x
0 1 2 3 4 5 6 7 8 9
4 2 7 2 4 4 3 2 2 1
> plot(t)
> plot(t,type="h")
> polygon(t)
> polygon(t,col="red")
> points(c(1/2,3/4,1/4),c(0,0,0))
> points(c(1/2,3/4,1/4),c(0,0,0),col="red")
> lines(0:9,t)
> p=quartile(x,probs=c(0.25,0.5,0.75))
Erreur : impossible de trouver la fonction "quartile"
> p=quartile(x,probs=c(0.25,0.5,0.75))
Erreur : impossible de trouver la fonction "quartile"
> p=quantile(x,probs=c(0.25,0.5,0.75))
> p
25% 50% 75%
2.0 4.0 5.5
> points(p,c(0,0,0),col="green")
> boxplot(t)
Error in Axis.table(x = c(1, 2, 2.5, 4, 7), side = 2) :
seulement pour des tableaux 1-D
> boxplot(x)
> boxplot(t)
Error in Axis.table(x = c(1, 2, 2.5, 4, 7), side = 2) :
seulement pour des tableaux 1-D
> boxplot(x)
> boxplot(x,range=1.5)
> boxplot(x)
> boxplot(x,range=1.5)
> boxplot(x)
> boxplot(x,range=1.5)
> boxplot(x,range=)
> boxplot(x,range=)
> boxplot(x,range=0)
> ecd(f)
Erreur : impossible de trouver la fonction "ecd"
> ecdf(x)
Empirical CDF
Call: ecdf(x)
x[1:10] = 0, 1, 2, ..., 8, 9
> plot(ecdf(x))
>

Vous aimerez peut-être aussi