powered by
Plot a Double Pendulum Trajectory
plot_double_pendulum(.data, .walk = 1)
A customizable ggplot of the second bob's spatial trajectory, colored by elapsed seconds. Coordinates are in meters.
a ggplot2 object.
Data returned by double_pendulum_walk().
double_pendulum_walk()
One walk_number label to display, rather than its position.
Steven P. Sanderson II, MPH
Other Visualization Functions: animate_double_pendulum(), visualize_walks()
animate_double_pendulum()
visualize_walks()
if (requireNamespace("deSolve", quietly = TRUE)) { plot_double_pendulum(double_pendulum_walk(.num_walks = 1, .n = 200)) }
Run the code above in your browser using DataLab