plot_shape: Visualize fields

Description Usage Arguments Details Value Author(s) References Examples

Description

Visualize the specified fields of a shape object on using 1- or 2-way color scale.

This function is used for fast investigation of shape objects; standard visualization choices are made automatically; fast and easy-to-use but does not necessarily provide optimal visualization.

Usage

1
2
3
4
plot_shape(sp, varname, type = "oneway", ncol = 10, at = NULL,
  palette = NULL, main = NULL, colorkey = TRUE, lwd = 0.4,
  border.col = "black", col.regions = NULL, min.color = "white",
  max.color = "red", plot = TRUE)

Arguments

sp

Shape object

varname

Variable name from the shape object sp to be visualized

type

String. Specifies visualization type. Options: "oneway", "twoway", "qualitative", "custom". See details.

ncol

Number of distinct colors shades

at

Color transition points

palette

Optional. Color palette.

main

Optional. Title text.

colorkey

Logical. Show color interpretation in a separate legend.

lwd

Optional. Line width for shape polygon borders.

border.col

Optional. Color for shape polygon borders.

col.regions

Optional. Specify color for the shape object regions manually.

min.color

Color for minimum values in the color scale

max.color

Color for maximum values in the color scale

plot

Plot the image TRUE/FALSE

Details

Visualization types include: oneway/sequential (color scale ranges from white to dark red, or custom color given with the palette argument); twoway/bipolar/diverging (color scale ranges from dark blue through white to dark red; or custom colors); discrete/qualitative (discrete color scale; the colors are used to visually separate regions); and "custom" (specify colors with the col.regions argument)

Value

A Trellis Plot Object

Author(s)

Leo Lahti and Juuso Parkkinen louhos@googlegroups.com

References

See citation("gisfin")

Examples

1
2
sp.suuralue <- get_helsinki_aluejakokartat(map.specifier="suuralue"); 
          plot_shape(sp=sp.suuralue, varname="Name", type="discrete", plot=FALSE);

rOpenGov/gisfin documentation built on May 26, 2019, 8:48 p.m.