Description Usage Arguments Value
Particles will be colored in the chronological order using a color scale. The function can produce a plot and/or return the data frame of the cluster coordinates with the particle colors added.
1 2 |
data |
a dataframe or matrix with 2 or 3 columns of particle coordinates (for a 2D or 3D cluster), like the one produced by |
color0 |
color for the earliest particles, start color of the color scale |
color1 |
color for the latest particles, end color of the color scale |
return.data |
logical, whether the function should return the data frame used for plotting |
plot |
logical, whether the function should produce a plot |
dupl.rm |
logical, whether to remove duplicate particles (particles with identical coordinates), leaving the earliest ones. Normally, there should not be duplicate particles, but one exception is when the source of particles was at a finite point and the cluster reached it, so all particles emitted after that remain at the source. |
if return.data
is TRUE, will return the data frame with the extra column "color" containing particle colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.