Displaying 1 result from an estimated 1 matches for "relcum".
Did you mean:
welcum
2011 Jul 14
2
Add a density line to a cumulative histogram - second try
...p://www.jochen-bauer.net/downloads/histo-cumulative-density.png
Source:
# Histogramm
histo <- hist( hgd$V1, freq=FALSE )
# Dichte-Sch?tzer-Funktion reinzeichnen
denspoints <- density( hgd$V1 )
lines( denspoints, col="GREEN", lwd=2 )
# Kumulative Verteilung relativer H?ufigkeiten
relcum <- cumsum( histo$counts ) / sum(histo$counts)
barplot( relcum, names.arg=round( histo$mids, 2), col="green",
ylab="Wahrscheinlichkeit")
# Kumulative Dichtefunktion ?
Thanks in advance - Jochen
--
View this message in context: http://r.789695.n4.nabble.com/Add-a-density-lin...