powered by
Count the number of items exceeding a certain size.
sizefrequency(dat, n = 10, log = TRUE)
a data frame with two columns size and
size
frequency
a numerical vector
the number of sizes to evaluate
logical. If TRUE, uses a log spacing for the sizes at which the frequencies are evaluated
TRUE
data(Finland,package='geostats') sf <- sizefrequency(Finland$area) plot(frequency~size,data=sf,log='xy') fit <- lm(log(frequency) ~ log(size),data=sf) lines(x=sf$size,y=exp(predict(fit)))
Run the code above in your browser using DataLab