plot.sg: Plot a spatial graph

View source: R/plot_sg.R

plot.sgR Documentation

Plot a spatial graph

Description

Rudimentary plotting.

Usage

## S3 method for class 'sg'
plot(
  x,
  data,
  which = NULL,
  add = FALSE,
  addPoints = FALSE,
  points.pch = 1,
  points.col = 1,
  points.cex = 1,
  max.edges = 10000,
  ...
)

Arguments

x

an 'sg' graph object

data

The point pattern object, same as for computing the 'g'

which

Indices of which out-edges to plot. Default: all

add

Add to existing plot? (default: FALSE)

addPoints

Add points? Will be added if add=FALSE

points.pch

point styling

points.col

point styling

points.cex

point styling

max.edges

limit of edges to try to plot, gets very slow at high count. default 1e4

...

passed to 'lines' function


spatgraphs documentation built on Feb. 16, 2023, 8:49 p.m.