Learn R Programming

AIUQ (version 0.5.3)

plot_traj: Plot 2D particle trajectory

Description

Function to plot the particle trajectory after the simulation class has been constructed.

Usage

plot_traj(object, title = NA)

Value

2D plot of particle trajectory for a given simulation from simulation

class.

Arguments

object

an S4 object of class simulation

title

main title of the plot. If NA, title is "model_name with M particles" with model_name and M being field in simulation class.

Author

tools:::Rd_package_author("AIUQ")

Examples

Run this code
library(AIUQ)
sim_bm = simulation(sz=100,len_t=100,sigma_bm=0.5)
show(sim_bm)
plot_traj(sim_bm)

Run the code above in your browser using DataLab