View source: R/sl.plot.3D.init.R
sl.plot.3D.init | R Documentation |
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.
sl.plot.3D.init(projection = "polar", width = 30, lonlatrot.left = c(10, 0, 0), lonlatrot.right = c(-10, 0, 0), gap.frac = 0.1, col.background = NULL, precision = 1, device = "pdf", do.init = TRUE, do.init.device = do.init, file.name = paste0("~/sl.plot.3D.",device), mar = rep(0,4))
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. |
col.background |
a background colour. Default is |
precision |
a scalar specifying the precision (in degrees) at which the backgound polygon boundary is broken into straight line segments. Used only if |
device |
a character specifying which graphics device to use. Default is |
do.init |
a logical value indicating whether or not an initial call of |
do.init.device |
a logical value indicating whether or not initialise a device as specified by |
file.name |
a character specifying the output file. Only used if |
mar |
a numerical vector of the form |
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.
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"
.
Helge Goessling
sl.plot.end
, sl.plot.init
, sl.plot.platon.init
## To be provided ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.