Description Usage Arguments Examples
View source: R/projectile_plot.R
Plot the trajectory of some object given the initial conditions (ignore drag)
1 | projectile_plot(x0 = 0, y0 = 0, vx0 = 10, vy0 = 50, ax = 0, ay = -9.8, starttime = 0, endtime = 15)
|
x0 |
Initial x position (m) |
y0 |
Initial y position (m) |
vx0 |
Initial x velocity (m/s) |
vy0 |
Initial y velocity (m/s) |
ax |
Acceleration in x direction (m/s2) |
ay |
Acceleration in y direction (m/s2) |
starttime |
Beginning time for plot (sec) |
endtime |
End time for plot (sec) |
1 2 3 | projectile_plot(x0 = 0, y0 = 0, vx0 = 10, vy0 = 50, ax = 0, ay = -9.8,
starttime = 0, endtime = 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.