utils_polygon_plot | R Documentation |
plot_contour()
Plot contour lines.
plot_polygon()
Plots a polygon describing the objects.
plot_mass()
Plots the center of mass along with maximum and minimum
radius.
plot_ellipse()
Plots an ellipse that fits the major and minor axis for
each object.
plot_contour(x, id = NULL, col = "black", lwd = 1, ...)
plot_polygon(
x,
fill = "gray",
random_fill = TRUE,
points = FALSE,
merge = TRUE,
border = "black",
alpha = 1,
add = FALSE,
nrow = NULL,
ncol = NULL,
aspect_ratio = 1,
show_id = TRUE,
xlim = NULL,
ylim = NULL,
...
)
plot_mass(x, id = NULL, col = "black", cex = 1, lwd = 1)
plot_ellipse(object, id = NULL, col = "black", lwd = 1)
x |
A 2-column matrix with the |
id |
The object identification (numeric) to plot the contour/ellipse. By
default ( |
col, lwd, cex |
The color, width of the lines, and size of point, respectively. |
... |
|
fill, border, alpha |
The color to fill the polygon, the color of the polygon's border, and the alpha transparency (1 opaque, 0 transparent). |
random_fill |
Fill multiple objects with random colors? Defaults to
|
points |
Plot the points? Defaults to |
merge |
Merge multiple objects into a single plot? Defaults to |
add |
Add the current plot to a previous one? Defaults to |
nrow, ncol |
The number of rows and columns to use in the composite
image. Defaults to |
aspect_ratio |
The x/y aspect ratio. Defaults to |
show_id |
Shows the object id? Defaults to |
xlim, ylim |
A numeric vector of length 2 (min; max) indicating the range
of |
object |
An object computed with |
a NULL
object.
plot_polygon(contours)
plot_contour(contours[[1]], id = 6, col = "red", lwd = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.