Zeichnet eine Kurve. Siehe auch plot

Beispiel Bearbeiten

#!/usr/bin/env Rscript

png("Kurven.png",width=1000,height=1000)

par(mfcol=c(2,2))

curve(sin(x)
    , 0 , 2*pi
    , col="red"
    , ylab="y"
    , main="sin(x)"
    )

curve(cos(x)
    , 0 , 2*pi
    , col="blue"
    , xlab="x"
    , ylab="y"
    , main="cos(x)"
    )

curve(tan(x)
    , 0 , pi/2
    , col="blue"
    , xlab="x"
    , ylab="y"
    , ylim=c(0,10)
    , main="tan(x)"
    )

curve(1/tan(x)
    , 0 , pi/2
    , col="blue"
    , xlab="x"
    , ylab="y"
    , ylim=c(0,10)
    , main="cotan(x)"
    )

dev.off()

siehe auch Bearbeiten

  • boxplot - Erzeugt Boxplots
  • hist - Erzeugt Histogramme
  • lines - Erzeugt zusätzliche Linien
  • par - Funktion zum Setzen grafischer Parameter
  • title - Funktion zum Beschriften der Grafik
  • plotmath - fügt einem Plot mathematische Symbol hinzu
  • ggplot - ist eine eigenständige Alternative zur Standard-plot()-Funktion.
  • Diagramme