drawEllipse | R Documentation |
Image
drawEllipse
draws ellipses (or part of) over an
Image
object. This operation is destructive: it changes
irreversibly the Image
object and cannot be undone.
drawEllipse(
image,
x,
y,
axis1,
axis2,
angle,
start_angle = 0,
end_angle = 360,
color = "red",
thickness = 1
)
image |
An |
x |
A numeric value or vector representing the x coordinates of the centers of each ellipse |
y |
A numeric value or vector representing the y coordinates of the centers of each ellipse |
axis1 |
A numeric value or vector representing the half-length of the first axis of each ellipse. |
axis2 |
A numeric value or vector representing the half-length of the second axis of each ellipse. |
angle |
A numeric value or vector representing the angle in degrees
between |
start_angle |
A numeric value or vector representing the start angle in degrees of each elliptic arc (default: 0). |
end_angle |
A numeric value or vector representing the end angle in degrees of each elliptic arc (default: 360). |
color |
A value or vector of any kind of R color specification compatible
with |
thickness |
A numeric value or vector representing the thickness in pixels of each ellipse's outline (default: 1). If negative, then a filled ellipse is drawn. |
This function does not return anything. It modifies image
in
place.
Simon Garnier, garnier@njit.edu
Image
, drawCircle
, drawRotatedRectangle
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
drawEllipse(balloon, 365, 245, 120, 90, angle = 45, thickness = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.