Description Usage Arguments Value See Also Examples
Returns a function that computes the fitted log function of
a set of points using powerFit
.
1 | powerFitFun(x, y)
|
x |
Vector containing x coordinates of the points. |
y |
Vector containing y coordinates of the points. |
Function that uses the fit parameters to estimate y.
1 2 3 4 5 6 | x <- 1:10
y <- 2.5 * x^0.3 + rnorm(10, sd=0.2)
fitfun <- powerFitFun(x, y)
plot(x, y, xlab='x', ylab='y')
lines(x, fitfun(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.