bounce | R Documentation |
Demonstrate bouncing ball.
bounce(n = 5000, init = c(3, 1), vel = c(0.03, 0.04), xlim = c(0, 10),
ylim = c(0, 10), xaxs = "i", yaxs = "i", pch = 16, col = "blue",
cex = 1.5)
n |
number of time steps to simulate. |
init |
initial x and y coordinates (vector of length 2). |
vel |
initial x and y velocity (vector of length 2). |
xlim |
x-axis limits (vector of length 2). |
ylim |
y-axis limits (vector of length 2). |
xaxs |
x-axis style. |
yaxs |
y-axis style. |
pch |
point symbol. |
col |
point color. |
cex |
point size. |
NULL
, but n
plots are drawn.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.