sizefrequency | R Documentation |
Count the number of items exceeding a certain size.
sizefrequency(dat, n = 10, log = TRUE)
dat |
a numerical vector |
n |
the number of sizes to evaluate |
log |
logical. If |
a data frame with two columns size
and
frequency
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.