torusAxis | R Documentation |
Wrapper for drawing pretty axis labels for circular variables.
To be invoked after plot
with axes = FALSE
has been called.
torusAxis(sides = 1:2, twoPi = FALSE, ...)
sides |
an integer vector specifying which side of the plot the axes are
to be drawn on. The axes are placed as follows: |
twoPi |
flag indicating that |
... |
further parameters passed to |
The function calls box
.
This function is usually invoked for its side effect, which is to add axes to an already existing plot.
grid <- seq(-pi, pi, l = 100)
plotSurface2D(grid, grid, f = function(x) sin(x[1]) * cos(x[2]),
nLev = 20, axes = FALSE)
torusAxis()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.