Re: [R] plotting Zipf and Zipf-Mandelbrot curves in R

2010-10-18 Thread Stefan Evert
Hi! > Using R, I plotted a log-log plot of the frequencies in the Brown Corpus > using > plot(sort(file.tfl$f, decreasing=TRUE), xlab="rank", ylab="frequency", > log="x,y") > However, I would also like to add lines showing the curves for a Zipfian > distribution and for Zipf-Mandelbrot. It's fair

[R] plotting Zipf and Zipf-Mandelbrot curves in R

2010-10-11 Thread Joseph Sorell
Using R, I plotted a log-log plot of the frequencies in the Brown Corpus using plot(sort(file.tfl$f, decreasing=TRUE), xlab="rank", ylab="frequency", log="x,y") However, I would also like to add lines showing the curves for a Zipfian distribution and for Zipf-Mandelbrot. I have seen these in many a