This function builds a map that visualises estimates and errors simultaneously with a bivariate colour scheme.
build_bmap(
data,
geoData = NULL,
id = NULL,
border = NULL,
palette = "BlueYellow",
size = NULL,
terciles = FALSE,
bound = NULL,
flipAxis = FALSE
)
A data frame.
A spatial polygons data frame.
Name of the common column shared by the objects passed to
data
and geoData
. The estimates and errors in the data frame
will be matched to the geographical regions of the spatial polygons data
frame through this column.
Name of geographical borders to be added to the map. It must be
one of county
, france
,
italy
, nz
,
state
, usa
or
world
(see documentation for
map_data
for more information). The borders will be
refined to match latitute and longtidue coordinates provided in the data
frame or spatial polygons data frame.
Name of colour palette or character vector of hex colour codes
from the build_palette
function. Colour palette names include
BlueYellow
, CyanMagenta
, BlueRed
and GreenBlue
.
An integer between 1 and 20. Value controls the size of points
when geoData = NULL
. If size = NULL
, the points will remain
the default size.
A logical value. This provides the option to define numerical bounds for the colour key grid using terciles instead of equal intervals.
Output from the findNbounds
function if a different
set of data is required to bound the map. This is useful if you are wanting
to create a bivariate map across multiple years and show colours that correspond
to the same key. Default is NULL.
A logical value. Whether to place the axis on the opposite sides or not.
If geoData
remains NULL
, the function will produce a map of
plotted points representing specific sites; in this case, the data frame must
include latitude and longitude coordinates in columns "long"
and
"lat"
.