bounce: Bouncing Ball

View source: R/bounce.R

bounceR Documentation

Bouncing Ball

Description

Demonstrate bouncing ball.

Usage

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)

Arguments

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.

Value

NULL, but n plots are drawn.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.