TP4(Graphiques)


    
A) ##Tracer le graphe de la fonction √X en fonction de X
    x<-0:20
    y<-sqrt(x)
    1) Utiliser les option graphique xlab,ylab,main,sub ,xlim,ylim, type="b" et col
    2)Tester
    plot(x1,y1,type="l",main="type=\"l\"")
    plot(x1,y1,type="o",main="type=\"o\"")
    plot(x1,y1,type="h",main="type=\"h\"")
    plot(x1,y1,type="s",main="type=\"s\"")
    plot(x1,y1,type="n",main="type=\"n\"")
    ##Ajouter les éléments suivant au graphe: title(),axis() ,legend() , text() , segments(a,b,c,d) , lines(x,y)
    B) Tester les différentes options graphiques  sur des données de votre choix

Modifié le: mercredi 29 juin 2022, 00:09