vis.dla: Visualize DLA cluster

Description Usage Arguments Value

Description

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.

Usage

1
2
vis.dla(data, color0 = "green", color1 = "red", return.data = FALSE,
  plot = TRUE, dupl.rm = TRUE)

Arguments

data

a dataframe or matrix with 2 or 3 columns of particle coordinates (for a 2D or 3D cluster), like the one produced by dla2d or dla3d. An additional column named "color" will be tolerated and ignored.

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.

Value

if return.data is TRUE, will return the data frame with the extra column "color" containing particle colors


rushkin/dla documentation built on May 25, 2019, 2:53 a.m.