View source: R/gta plot tile.R
gta_plot_tile | R Documentation |
This function facilitates map creation with ggplot.
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
)
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. |
Global Trade Alert
www.globaltradealert.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.