fit.power.law | R Documentation |
Model: y ~ a * x^-lambda
fit.power.law(x, y, xmin = min(x), xmax = max(x), plot = TRUE, add = TRUE, ...)
x |
A vector of independent variable. |
y |
A vector of dependent variable. |
xmin |
The lower bound point of x. |
xmax |
The higher truncated point of x. |
plot |
Whether to plot the fitted curve. |
add |
Whether to add the fitted curve to current plot. |
... |
Extra parameters to |
A list of values for a and lambda.
fit_power_law
, fit.truncated.power.law
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.