interpolate | R Documentation |
2 point interpolation
interpolate(y1, y2, x1, x2, x)
y1 , y2 , x1 , x2 |
Reference known points (x1,y1), (x2,y2) |
x |
Point for which we want to estimate y based on slope given by points 1 and 2 |
y = (x - x1)/(x2-x1) * (y2-y1) + y1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.