Usage
gradLinkTypoLayer(spdf, df, spdfid = NULL, spdfids, spdfide, dfid = NULL, dfids, dfide, var, breaks = discretization(v = df[, var], nclass = 4, method = "quantile"), lwd = c(1, 2, 4, 6), var2, col = NULL, legend.title.cex = 0.8, legend.values.cex = 0.6, legend.values.rnd = 0, legend.var.pos = "bottomleft", legend.var.title.txt = var, legend.var.frame = FALSE, legend.var2.pos = "topright", legend.var2.title.txt = var2, legend.var2.values.order = NULL, legend.var2.nodata = "no data", legend.var2.frame = FALSE, add = TRUE)
Arguments
spdf
SpatialLinesDataFrame; a link layer.
df
data frame with identifier(s) and a variable.
spdfid
unique identifier in spdf (spdfids, spdfide, dfids and dfide are not used).
spdfids
identifier of starting points in spdf (spdfid and dfid are not used).
spdfide
identifier of ending points in spdf (spdfid and dfid are not used).
dfid
unique identifier in df (spdfids, spdfide, dfids and dfide are not used).
dfids
identifier of starting points in df (spdfid and dfid are not used).
dfide
identifier of ending points in df (spdfid and dfid are not used).
var
name of the variable used to plot the links widths.
breaks
break values in sorted order to indicate the intervals for assigning the lines widths.
lwd
vector of widths (classes of widths).
var2
name of the variable used to plot the links colors.
legend.title.cex
size of the legend title.
legend.values.cex
size of the values in the legend.
legend.values.rnd
number of decimal places of the values in
the legend.
legend.var.pos
position of the legend for var, one of "topleft", "top",
"topright", "left", "right", "bottomleft", "bottom", "bottomright".
legend.var.title.txt
title of the legend (numeric data).
legend.var.frame
whether to add a frame to the legend (TRUE) or
not (FALSE).
legend.var2.pos
position of the legend for var2, one of "topleft", "top",
"topright", "left", "right", "bottomleft", "bottom", "bottomright".
legend.var2.title.txt
title of the legend (factor data).
legend.var2.values.order
values order in the legend, a character vector
that matches var modalities. Colors will be affected following this order.
legend.var2.nodata
text for "no data" values
legend.var2.frame
whether to add a frame to the legend (TRUE) or
not (FALSE).
add
whether to add the layer to an existing plot (TRUE) or
not (FALSE).