slice {matRiks} | R Documentation |
Coordinates of a pizza slice
Description
Define the coordinates for drawing a circle section
Usage
slice(
size.x = 15,
size.y = 0,
pos.x = 0,
pos.y = 0,
theta1 = pi/4,
theta2 = 3 * pi/4,
lty = 1,
lwd = 3,
vis = 1,
shd = NA
)
Arguments
size.x |
integer, length of the semi-major axis of the ellipse within which the figure is inscribed. Default is 15 |
size.y |
integer, length of the semi-major axis of the ellipse within which the figure is inscribed. Default is 0 |
pos.x |
numeric, position on the x axis. Default is 0 |
pos.y |
numeric, position the y axis, Default is 0 |
theta1 |
Starting angle of the circle section. Default is |
theta2 |
Ending angle of the circle section (built counterclockwise). Default is |
lty |
integer, define the line type of the figure, default is 1 (solid line) |
lwd |
integer, define the line width of the figure. Default is 3 |
vis |
Visibility of the figure. Default is 1, making the figure visible. To hide the figure, change it to 0 |
shd |
character, define the shading of the figure. Default is NA which results in a transparent figure |
Value
Return the coordinates for drawing a circle section
Examples
# default coordinates of the pizza slice
slice()
# change the rotation of the pizza slice
slice(theta1 = 3*pi/4, theta2 = 5*pi/4)