plot.fm_segm {fmesher}R Documentation

Draw fm_segm objects.

Description

Draws a fm_segm() object with generic or rgl graphics.

Usage

## S3 method for class 'fm_segm'
plot(x, ..., add = FALSE)

## S3 method for class 'fm_segm'
lines(
  x,
  loc = NULL,
  col = NULL,
  colors = c("black", "blue", "red", "green"),
  add = TRUE,
  xlim = NULL,
  ylim = NULL,
  rgl = FALSE,
  asp = 1,
  axes = FALSE,
  xlab = "",
  ylab = "",
  ...
)

## S3 method for class 'fm_segm_list'
plot(x, ...)

## S3 method for class 'fm_segm_list'
lines(x, ...)

Arguments

x

An fm_segm() object.

...

Additional parameters, passed on to graphics methods.

add

If TRUE, add to the current plot, otherwise start a new plot.

loc

Point locations to be used if x$loc is NULL.

col

Segment color specification.

colors

Colors to cycle through if col is NULL.

xlim, ylim

X and Y axis limits for a new plot.

rgl

If TRUE, use rgl for plotting.

asp

Aspect ratio for new plots. Default 1.

axes

logical; whether axes should be drawn on the plot. Default FALSE.

xlab, ylab

character; labels for the axes.

Value

None

Author(s)

Finn Lindgren finn.lindgren@gmail.com

See Also

fm_segm(), plot.fm_mesh_2d

Examples

plot(fm_segm(fmexample$mesh, boundary = TRUE))
lines(fm_segm(fmexample$mesh, boundary = FALSE), col = 2)


[Package fmesher version 0.1.5 Index]