plot of loca.p class objects
This method provides a graphical representations of an object of class loca.p
.
methods
## S3 method for class 'loca.p' plot( x, xlab = "", ylab = "", main = paste(gettext("Plot of loca.p"), ifelse(x@label == "", "", paste0(": \"", x@label, "\""))), img = NULL, xlim = c(min(xleft, min(x@x)), max(xright, max(x@x))), ylim = c(min(ybottom, min(x@y)), max(ytop, max(x@y))), xleft = min(x@x), ybottom = min(x@y), xright = max(x@x), ytop = max(x@y), ... )
x
: The loca.p
object to plot.xlab
: The label for x axis.ylab
: The label for y axis.main
: The main title for the plot.img
: A raster image to plot on background.xlim
: Limit over the x axes of the plot.ylim
: Limit over the y axes of the plot.xleft
: The left position of the image.ybottom
: The bottom position of the image.xright
: The right position of the image.ytop
: The top position of the image.The function plots the required graphics.
The function plots demand points by evaluating limits automatically.
# A new unweighted loca.p object loca <- loca.p(x = c(-1, 1, 1, -1), y = c(-1, -1, 1, 1)) # The plot of loca object plot(loca)
See also orloca-package
, loca.p
and plot
.