Learn R Programming

aspace (version 2.5)

plot_mcp: Plot the Minimum Convex Polygon

Description

This function plots the MCP as a polygon, which covers the geographical extent of a set of points on a Cartesian plane.

Usage

plot_mcp(plotnew=TRUE, plotpoints=TRUE, points.col='black', 
points.pch=1, titletxt="Title", xaxis= "Easting (m)", 
yaxis="Northing (m)", mcp.col='black', mcp.lwd=2, 
fill.col=NA, jpeg=FALSE, ...)

Arguments

plotnew
Boolean: Set to TRUE to create a new plot. Set to FALSE to overlay current plot.
plotpoints
Boolean: Set to TRUE if the point observations are to be plotted
points.col
Specify a colour for the point observations
points.pch
Specify a plotting symbol for the point observations
titletxt
A string to use as the title on the plot
xaxis
A string to label the x-axis of the plot
yaxis
A string to label the y-axis of the plot
mcp.col
Specify the line colour for the MCP
mcp.lwd
Specify the line width for the MCP
fill.col
Specify a fill colour for the MCP
jpeg
Boolean: Set to TRUE if the plot should be saved in JPEG format
...
Arguments to be passed to graphical parameters

Details

The r.MCP object (generated in calc_mcp function) is required to plot the MCP.

See Also

plot_sdd, plot_box, plot_sde, makeshapes, ellipse3,

Examples

Run this code
plot_mcp(plotnew=TRUE, plotpoints=TRUE, titletxt="Title", 
xaxis= "Easting (m)", yaxis="Northing (m)")

Run the code above in your browser using DataLab