Learn R Programming

geofacet (version 0.2.1)

grid_preview: Plot a preview of a grid

Description

Plot a preview of a grid

Usage

grid_preview(x, label = NULL, label_raw = NULL, do_plot = TRUE)

Arguments

x

a data frame containing a grid

label

the column name in x that should be used for text labels in the grid plot

label_raw

the column name in the optional SpatialPolygonsDataFrame attached to x that should be used for text labels in the raw geography plot

do_plot

should the grid preview be plotted?

Examples

Run this code
grid_preview(us_state_grid2)
grid_preview(eu_grid1, label = "name")

Run the code above in your browser using DataLab