pset | R Documentation |
pset
sets the values of the pixels at the specified x
and y coordinates in the image.
pset(image, x, y, color)
image |
An |
x |
A vector of x locations (columns) in the image. |
y |
A vector of y locations (rows) in the image. |
color |
A value or vector of any kind of R color specification compatible
with |
This functions returns nothing and changes the values of the pixels
in image
in place.
Simon Garnier, garnier@njit.edu
Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
pset(balloon, 1:100, 200:101, "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.