plot_traj: Plot 2D particle trajectory

View source: R/functions.R

plot_trajR Documentation

Plot 2D particle trajectory

Description

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

Usage

plot_traj(object, title = NA)

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.

Value

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

Author(s)

Yue He [aut], Xubo Liu [aut], Mengyang Gu [aut, cre]

Examples

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

AIUQ documentation built on July 2, 2024, 9:06 a.m.