gta_plot_tile: Create ggplot maps.

View source: R/gta plot tile.R

gta_plot_tileR Documentation

Create ggplot maps.

Description

This function facilitates map creation with ggplot.

Usage

gta_plot_tile(
  data = NULL,
  value.x = NULL,
  value.y = NULL,
  values = NULL,
  colour.low = gta_colour$blue[4],
  colour.high = gta_colour$blue[1],
  legend.title = NULL,
  title = NULL,
  x.axis.name = NULL,
  y.axis.name = NULL
)

Arguments

data

Specify the dataframe with the relevant columns.

value.x

Specify the name of the column containing the x-values.

value.y

Specify the name of the column containing the y-values.

values

Specify the name of the column containing the value for each country.

colour.low

Specifiy a color from the gta colour palette for the low part of the gradient. Default: GTA dark blue

colour.high

Specify a color from the gta colour palette for the high part of the gradient. Default: GTA light blue

legend.title

Specify a title for the colour legend. Default: No title.

title

Specify a title for the map plot. Default: No title.

x.axis.name

Specify the x-axis label. Default: No label.

y.axis.name

Specify the x-axis label. Default: No label.

Author(s)

Global Trade Alert

References

www.globaltradealert.org


global-trade-alert/gtalibrary documentation built on April 5, 2024, 1:54 p.m.