Basic routine to visualise the result of an N-body simulation, projected onto a plane.
# S3 method for simulation
plot(
x,
y,
units = 1,
index1 = 1,
index2 = 2,
xlim = NULL,
ylim = NULL,
center = c(0, 0, 0),
cex = 0.3,
pch = 20,
title = "",
asp = 1,
pty = "m",
col = "black",
alpha.orbits = 1,
alpha.snapshots = 1,
lwd = 1,
show.orbits = TRUE,
show.snapshots = TRUE,
show.ics = TRUE,
show.fcs = TRUE,
...
)None
is a simulation-object as produced by run.simulation
deprecated argument included for consistency with generic plot function
length unit in SI units
index of the dimension plotted on the x-axis
index of the dimension plotted on the y-axis
2-vector specifying the plotting range along the x-axis
2-vector specifying the plotting range along the y-axis
3-vector specifying the plotting center in the specified units
point size
point type
title of plot
aspect ratio of x and y axes
character specifying the type of plot region to be used; "s" generates a square plotting region and "m" generates the maximal plotting region.
either (1) a single color, (2) a n-element vector of colors for each particle or (3) a function(n,...) producing n colors, e.g. 'rainbow'
opacity (0...1) of orbital lines.
opacity (0...1) of snapshot points.
line width of orbital lines.
logical flag. If TRUE (default), the orbits are shown as straight lines between snapshots.
logical flag. If TRUE (default), points are shown for each snapshot.
logical flag. If TRUE (default), the initial positions are highlighted.
logical flag. If TRUE (default), the final positions are highlighted.
additional parameters for plot
Danail Obreschkow