View source: R/closed_figures.R
circle | R Documentation |
Define the coordinates for drawing a circle
circle(
size.x = 10,
size.y = size.x,
pos.x = 0,
pos.y = 0,
lty = 1,
lwd = 3,
shd = NA,
vis = 1
)
size.x |
numeric, define the semi-major axis of the ellipse within which the figure is inscribed. Default is 10 |
size.y |
numeric, define the semi-minor axis of the ellipse within which the figure is inscribed. Default is size.x |
pos.x |
numeric, position on the x axis. Default is 0 |
pos.y |
numeric, position the y axis, Default is 0 |
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 |
shd |
character, define the shading of the figure. Default is NA which results in a transparent figure |
vis |
Visibility of the figure. Default is 1, making the figure visible. To hide the figure, change it to 0 |
Return the coordinates for drawing a circle
# return the default coordinates for drawing a circle
circle()
# change the coordinates for drawing a smaller circle
circle(size.x = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.