| makePolar | R Documentation |
Functions to convert polar co-ordinates into cartesean co-ordinates and to make a component that uses functions that output polar co-ordinates.
runPolar(
x = 0.5,
y = 0.5,
distanceFunction = function(x) { x/2 },
bearingFunction = function(x) { x * 2 * pi },
parameterSpace = seq(0, 1, length.out = 100),
rotation = 0,
numLines = 1
)
makePolar(type = "lines", ...)
x, y |
the center polar co-ordinates are drawn from. |
distanceFunction |
a function that returns distances from x,y |
bearingFunction |
a function that returns bearings from x,y |
parameterSpace |
a vector of parameters passed to the distance and bearing functions. |
rotation |
an additional rotation. Defaults to 0. |
numLines |
divides the answer into a number of lines seperated by NAs for use with lines(). |
type |
the type/graphics function of the component. |
... |
parameters passed to the component and the component functions. See "details" for more information. |
Used by many other applications such as Maurer roses, spirals and spirographs.
runPolar returns a list with x and y components. makePolar returns a component.
Other polarConversion:
cart2polar(),
polar2cart()
print(1+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.