Learn R Programming

aspace (version 3.2)

plot_centres: Plot centres

Description

This function plots various centre of a set of point observations.

Usage

plot_centres(plotnew=FALSE, plotSDE=FALSE, xaxis="Easting (m)", yaxis="Northing (m)", robject=NULL, plotweightedpts=FALSE, weightedpts.col='black', weightedpts.pch=19, plotpoints=TRUE, points.col='black', points.pch=1, plotcentre=FALSE, centre.col='black', centre.pch=19, plotcentral=FALSE, central.col='green', central.pch=19, plotCF2PTS=FALSE, CF2PTS.col='orange', CF2PTS.pch=19, plotmedian=FALSE, median.col='blue', median.pch=17, plotCMD=FALSE, CMD.col='red', CMD.pch=17, ...)

Arguments

plotnew
Boolean: Set to TRUE to create a new plot. Set to FALSE to overlay current plot.
plotSDE
Boolean: Set to TRUE if the centres for the SDE are to be plotted
xaxis
A string to label the x-axis of the plot
yaxis
A string to label the y-axis of the plot
robject
Specify the results object from the computation function. Can be either r.SDD, r.SDE, or r.BOX.
plotweightedpts
Boolean: Set to TRUE if the weighted point observations are to be plotted
weightedpts.col
Specify a colour for the weighted point observations
weightedpts.pch
Specify a plotting symbol for the weighted point observations
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
plotcentre
Boolean: Set to TRUE if the mean/weighted/user-defined centre is to be plotted
centre.col
Specify a colour for the centre
centre.pch
Specify a plotting symbol for the centre
plotcentral
Boolean: Set to TRUE if the central feature is to be highlighted
central.col
Specify a colour for the central feature
central.pch
Specify a plotting symbol for the central feature
plotCF2PTS
Boolean: Set to TRUE if the central feature between 2 point patterns is to be highlighted
CF2PTS.col
Specify a colour for the central feature
CF2PTS.pch
Specify a plotting symbol for the central feature
plotmedian
Boolean: Set to TRUE if the median centre is to be plotted
median.col
Specify a colour for the median centre
median.pch
Specify a plotting symbol for the median centre
plotCMD
Boolean: Set to TRUE if the centre of minimum distance is to be plotted
CMD.col
Specify a colour for the centre of minimum distance
CMD.pch
Specify a plotting symbol for the centre of minimum distance
...
Arguments to be passed to graphical parameters

Details

The results object, for example, r.SDD object (generated in calc_sdd function) is required to plot the centres for the SDD.

See Also

plot_sde, plot_box

Examples

Run this code
xaxis="Easting (m)", yaxis="Northing (m)",
weightedpts.col='black', weightedpts.pch=19, plotpoints=TRUE, 
points.col='black', points.pch=1, plotcentre=FALSE, centre.col='black', 
centre.pch=19, plotcentral=FALSE, central.col='green', central.pch=19, 
plotCF2PTS=FALSE, CF2PTS.col='orange', CF2PTS.pch=19,
plotmedian=FALSE, median.col='blue', median.pch=17, plotCMD=FALSE, 
CMD.col='red', CMD.pch=17)

## plot_centres by default takes as input the result produced from CF, CF2PTS, and CMD, read from the current workspace. 

Run the code above in your browser using DataLab