View source: R/plt-double-pendulum.R
| plot_double_pendulum | R Documentation |
Plot a Double Pendulum Trajectory
plot_double_pendulum(.data, .walk = 1)
.data |
Data returned by |
.walk |
One walk_number label to display, rather than its position. |
A customizable ggplot of the second bob's spatial trajectory, colored by elapsed seconds. Coordinates are in meters.
a ggplot2 object.
Steven P. Sanderson II, MPH
Other Visualization Functions:
animate_double_pendulum(),
visualize_walks()
if (requireNamespace("deSolve", quietly = TRUE)) {
plot_double_pendulum(double_pendulum_walk(.num_walks = 1, .n = 200))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.