plot: plot of loca.p class objects

plotR Documentation

plot of loca.p class objects

Description

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

Usage

## S3 method for class 'loca.p'
plot(
  x,
  xlab = "",
  ylab = "",
  main = paste(gettext("Plot of loca.p", domain = "R-orloca"), 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),
  ...
)

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 the demand points with automatic limits evaluation.

Value

The function plots the required graphics.

See Also

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

Examples

# 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)


orloca documentation built on May 31, 2023, 8:59 p.m.