Displaying 1 result from an estimated 1 matches for "denspoints".
Did you mean:
densplants
2011 Jul 14
2
Add a density line to a cumulative histogram - second try
...ogram.
Yet, I was not able to add the density line to this cumulative histogram.
You can watch a picture of the histograms here:
http://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")
# Kumulati...