Learn R Programming

orloca (version 5.6)

plot: plot of loca.p class objects

Description

This method provides a graphical representations of an object of class loca.p.

Usage

# S3 method for 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),
  ...
)

Value

The function plots the required graphics.

Arguments

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.

...

Other graphical options.

Details

The function plots demand points by evaluating limits automatically.

See Also

See also orloca-package, loca.p and plot.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab