powered by
plot
image_shp
Draws the bounding boxes for each object computed with image_shp().
image_shp()
# S3 method for image_shp plot( x, img = NULL, col_line = "black", size_line = 2, col_text = "black", size_text = 0.75, ... )
A NULL object
NULL
An object computed with image_shp().
The image that was used to compute the shapefile (optional)
The color of the line/text in the grid. Defaults to "red".
"red"
The size of the line/text in the grid. Defaults to 2.5.
2.5
Currently not used.
library(pliman) flax <- image_pliman("flax_leaves.jpg") shape <- image_shp(flax, nrow = 3, ncol = 5) # grid on the existing image plot(flax) plot(shape)
Run the code above in your browser using DataLab