sphview4: Show one or seveal 3D point sets in four projections

Description Usage Arguments Author(s) See Also Examples

View source: R/sphview4.R

Description

Produces a 2-by-2 panel figure, where each panel is made of an sphview image in a different rotation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sphview4(
  x,
  rotations = c(2, 3, 4, 1),
  screen = TRUE,
  pdffile = NULL,
  title = NULL,
  scale = TRUE,
  width = NULL,
  ...
)

Arguments

x

n-by-3 matrix, representing the 3D-coordinates of n particles.

rotations

4-vector or 4-element list specifying four different values/vectors of the argument rotation in sphview. These different rotations are shown in the bottom left, bottom right, top left, and top right panel, respectively, in this order.

screen

logical flag specifying whether the images is displayed on the screen.

pdffile

optional pdf-filename to save the image as pdf-file.

title

Text to be added to the figure.

scale

logical flag, specifying if a length scale is shown

width

optional horizontal range of the image in the length units of x. The default corresponds to the full range of particle positions.

...

additional parameters for sphview.

Author(s)

Danail Obreschkow

See Also

sphview

Examples

1
2
3
# Example of a triaxial ellipsoid shown in four projections
x = t(t(cooltools::runif3(1e4))*c(3,2,1))%*%cooltools::rotation3(c(1,1,1))
sphview4(x)

obreschkow/simstar documentation built on Jan. 29, 2022, 2:16 p.m.