image_plot | R Documentation |
Draws pixel or rectangle on top of specified magick image
image_plot(img, geometry, col = "green", pointsize = 5, ...)
img |
magick image |
geometry |
point or area geometry |
col |
character value of color (either name or hex value), Default: 'green' |
pointsize |
size of point, Default: 5 |
... |
other parameters passed to 'image_draw()' |
Function makes distinction between drawing a point or drawing a rectangle only by the geometry. Use 'geometry_point()' and 'geometry_area()' to prepare and format geometries.
magick image with drawing on it
device
## Not run: if(interactive()){ frink <- image_read("https://jeroen.github.io/images/frink.png") image_plot(frink, geometry_area(50,35,80,150)) image_plot(frink, geometry_point(70,70)) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.