41_plot_methods: Plot Methods

Description Usage Arguments Examples

Description

Plotting methods for GeomObject(s).

These use a dual approach that supports both base graphics and grid.
There are plotting methods for both 2D and 3D objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## S3 method for class 'RImage'
plotv(im, ...)

## S3 method for class 'Points'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy")
## S3 method for class 'Line'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy")
## S3 method for class 'Polygon'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy")
## S3 method for class 'Text'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy")

## S3 method for class 'Grid'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy")
## S3 method for class 'VImage'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy")

## S3 method for class 'ImageArray'
plotv(im, ..., rby=TRUE, add=FALSE)
## S3 method for class 'GeomArray'
plotv(v, ..., gsys="graphics", add=FALSE, proj="xy", sort=TRUE)

plot_RImage (im, ..., gsys="graphics", 
    xlim = c (0, 1), ylim = c (0, 1),
    orient = "r",
    add=FALSE, interpolate=FALSE)

Arguments

v

A GeomObject.

xlim, ylim

Length-two numeric vectors, giving the boundaries of the image.

gsys

String, graphics system, either "graphics" or "grid".

add

Logical, if true, add to existing plot, if false, a new plot is created.

proj

String, the projection, for 3D objects.
Either "xy", "xz", "yz".

sort

Logical, if true, sort the objects, first.
Note that 3D objects need to be sorted to render correctly.
However, they only need to be sorted once.

interpolate

Logical, if true, interpolate.

orient

String, the orientation.
Either "v" for standard vector graphics (such as plotting heatmaps), "r", for standard raster graphics, but with the vertical axis running down, or "r.flip", for the same but with the vertical axis running up.
Note that "r" and "r.flip" should produce the same result, if add=FALSE.

im

An RImage (raster image) or ImageArray object.

rby

Logical, if true, plot by rows.

...

Ignored.
Except for plot_RImage, where they're passed to the as.raster method.
And also for the other plotting functions for RImage objects, where they're passed to plot_RImage, and then to the as.raster method.

Examples

1
plot (TCUBE)

vectools documentation built on June 7, 2021, 9:08 a.m.