draw_text | R Documentation |
Like other native CImg drawing functions, this is meant to be basic but fast. Use implot for flexible drawing.
draw_text(im, x, y, text, color, opacity = 1, fsize = 20)
im |
an image |
x |
x coord. |
y |
y coord. |
text |
text to draw (a string) |
color |
either a vector or a string (e.g. "red") |
opacity |
0: transparent 1: opaque. |
fsize |
font size (in pix., default 20) |
an image
Simon Barthelme
implot,draw_circle,draw_rect
draw_text(boats,100,100,"Some text",col="black") %>% plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.