drawCircle | R Documentation |
Image
drawCirlc
draws circles over an Image
object. This operation is destructive: it changes irreversibly the
Image
object and cannot be undone.
drawCircle(image, x, y, radius, color = "red", thickness = 1)
image |
An |
x |
A numeric value or vector representing the x coordinates of the centers of each circle. |
y |
A numeric value or vector representing the y coordinates of the centers of each circle. |
radius |
A numeric value or vector representing the radii of each circle. |
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 circle's outline (default: 1). If negative, then a filled rectangle is drawn. |
This function does not return anything. It modifies image
in
place.
Simon Garnier, garnier@njit.edu
Image
, drawEllipse
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
drawCircle(balloon, 365, 245, 90, thickness = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.