Description Usage Arguments References Examples
View source: R/plot_curvefit.R
Generates a Lorentzian curve based on the input data.
1 | gr_lorentzian(x, G, x_0, A)
|
x |
Point along x-axis, e.g. the wavenumber |
G |
Full-width at half max of the peak |
x_0 |
Center of the peak |
A |
Area of the peak |
http://mathworld.wolfram.com/LorentzianFunction.html
1 2 | x <- 1:1000
plot(x, gr_lorentzian(x, G = 10, x_0 = 500, A = 10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.