highlight | R Documentation |
Overlay an image plot with the contours of a pixel set. Note that this function doesn't do the image plotting, just the highlighting.
highlight(px, col = "red", ...)
px |
a pixel set |
col |
color of the contours |
... |
passed to the "lines" function |
Simon Barthelme
colorise, another way of highlighting stuff
#Select similar pixels around point (180,200)
px <- px.flood(boats,180,200,sigma=.08)
plot(boats)
#Highlight selected set
highlight(px)
px.flood(boats,18,50,sigma=.08) %>% highlight(col="white",lwd=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.