Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot

Plot method for the trigrid, hexagrid or facelayer classes


Description

This function will invoke the plot method of the SpatialPolygons class.

The function passes arguments to the plot method of the SpatialPolygons class. In case a heatmap is plotted and the plotting device gets resized, some misalignments can happen. If you want to use a differently sized window, use x11 to set the height and width before running the function.

Usage

plot

## S4 method for signature 'trigrid,ANY'
plot(x, projargs = NULL, ...)

## S4 method for signature 'facelayer,ANY'
plot(
  x,
  projargs = NULL,
  col = "heat",
  border = NA,
  alpha = NULL,
  frame = FALSE,
  legend = TRUE,
  breaks = NULL,
  inclusive = TRUE,
  discrete = FALSE,
  ...
)

Arguments

x

(trigrid, hexagrid or facelayer) The object to be plotted.

projargs

(character or CRS) A projection string for the transformation fo coordinates.

...

Arguments passed to the plot function.

col

(character) Colors passed to a colorRamp in case of the facelayer contains logical values, a single value is required (defaults to "red").

border

(character) Specifyies the color of the borders of the cells.

alpha

(character) Two digits for the fill colors, in hexadecimal value between 0 and 255.

frame

(logical) If TRUE the grid boundaries will be drawn with black.

legend

(logical): Should the legend be plotted?

breaks

(numeric) The number of breakpoints between the plotted levels. The argument is passed to the cut function.

inclusive

(logical): If there are values beyond the limits of breaks, should these be represented in the plot (TRUE) or left out completely FALSE?

discrete

(logical): Do the heatmaps symbolize a discrete or a continuous variable? This argument only affects the legend of the heatmap.

Format

An object of class standardGeneric of length 1.

Value

The function has no return value.


icosa

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.