easy_map: A convenient mapping function

Description Usage Arguments Value Note

View source: R/easy_map.r

Description

Function that produces a simple ggplot.

Usage

1
2
3
4
easy_map(data, knots = NULL, show.knots = TRUE, panel.plot = FALSE,
  panel1 = NULL, panel2 = NULL, cex = NULL, cex.knot = NULL,
  xlim = NULL, ylim = xlim, x.ticks = NULL, y.ticks = x.ticks,
  alpha = NULL, col.map = "ylgn", ...)

Arguments

data

input dataset containing coordinates (columns 1 and 2) and response data (column three).

knots

optional matrix of locations for knots.

show.knots

logical, whether the knots should be plotted.

panel.plot

logical, determines whether to produce a single figure or a paneled plot.

panel1

optional, grouping factor for first paneling level.

panel2

optional, grouping factor for second paneling level.

cex

optional, the size of the plotted points.

cex.knot

optional, the size of the knot locations.

xlim

optional, the limits of the x-coordinate.

ylim

optional, the limits of the y-coordinate.

x.ticks

optional, the placement of tick marks on the the x-axis.

y.ticks

optional, the placement of tick marks for the the y-axis.

alpha

the alpha scaling factor for geom_point.

col.map

the colormap for the plot, current options are "ylgn" (yellow-green) or "terrain.colors".

...

space for additional arguments.

Value

A figure produced with ggplot.

Note

This is a glorified wrapper for ggplot. It is unlikely to be useful in all circumstances, but often provides a reasonable map, especially for simulated examples using the simulation tools in RRSM, or other datasets on an approximatly square domain.


jelsema/RRSM documentation built on May 19, 2019, 4:02 a.m.