sl.plot.3D.init: 3D Polar Plot

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/sl.plot.3D.init.R

Description

Initialise a spheRlab 3D polar plot. Two panels are drawn next to each other, rotated slightly such that a 3D effect occurs when the panels are overlaid, by aiming with the eyes at a point either before or behind the plane where the figure is displayed.

Usage

1
sl.plot.3D.init(file.name = "~/sl.plot.pdf", projection = "polar", width = 30, lonlatrot.left = c(10, 0, 0), lonlatrot.right = c(-10, 0, 0), gap.frac = 0.1)

Arguments

file.name

a character specifying the output file.

projection

a character specifying the plot projection to be used. At the moment only 'polar' is implemented (the default).

width

a scalar specifying the width of the resulting figure.

lonlatrot.left

a vector of length 3 specifying the longitude and latitude of the projection north pole and the amount of rotation in degrees for the left panel.

lonlatrot.right

a vector of length 3 specifying the longitude and latitude of the projection north pole and the amount of rotation in degrees for the right panel.

gap.frac

a scalar specifying the relative width of the gap between the two panels.

Details

The list returned from this function must be provided to any spheRlab plotting functions called afterwards to fill the plot with data. After all plotting is done, sl.plot.end must be called, again with the list returned from this function provided.

A displacement of the two poles by about 20 degrees (as by default) may be appropriate.

Value

A list that must be provided to any spheRlab plotting functions called afterwards. In fact, the returned list contains two standard spheRlab plot specifics lists as the first two (unnamed) elements for the two panels that will be generated for the 3D plot, plus a third list element ...$projection="3D".

Author(s)

Helge Goessling

See Also

sl.plot.end, sl.plot.init, sl.plot.platon.init

Examples

1
## To be provided ...

helgegoessling/spheRlab documentation built on Sept. 29, 2017, 6:36 a.m.