|
29 | 29 | #' ## Relevant arguments and default values for each map types:
|
30 | 30 | #' **base**: displays sf objects geometries.
|
31 | 31 | #' \preformatted{
|
32 |
| -#' mf_map(x, col = "grey80", pch = 20, cex = 1, border = "grey20", lwd = 0.7, |
33 |
| -#' expandBB, add = FALSE, ...) |
| 32 | +#' mf_map(x, col = "grey80", pch = 20, cex = 1, border = "grey20", |
| 33 | +#' lwd = 0.7, alpha = NULL, expandBB, add = FALSE, ...) |
34 | 34 | #' }
|
35 | 35 | #'
|
36 | 36 | #' **prop**: displays symbols with areas proportional to a quantitative
|
37 | 37 | #' variable (stocks). `inches` is used to set symbols sizes.
|
38 | 38 | #' \preformatted{
|
39 | 39 | #' mf_map(x, var, type = "prop", inches = 0.3, val_max, symbol = "circle",
|
40 |
| -#' col = "tomato4", lwd_max = 20, border = getOption("mapsf.fg"), |
41 |
| -#' lwd = 0.7, expandBB, add = TRUE, |
| 40 | +#' col = "tomato4", alpha = NULL, lwd_max = 20, |
| 41 | +#' border = getOption("mapsf.fg"), lwd = 0.7, expandBB, add = TRUE, |
42 | 42 | #' leg_pos = mf_get_leg_pos(x), leg_title = var,
|
43 | 43 | #' leg_title_cex = 0.8, leg_val_cex = 0.6, leg_val_rnd = 0,
|
44 | 44 | #' leg_frame = FALSE, leg_frame_border = getOption("mapsf.fg"),
|
|
54 | 54 | #' can use palette names from `hcl.pals()`.
|
55 | 55 | #' \preformatted{
|
56 | 56 | #' mf_map(x, var, type = "choro", breaks = "quantile", nbreaks, pal = "Mint",
|
57 |
| -#' alpha = 1, rev = FALSE, pch = 21, cex = 1, |
| 57 | +#' alpha = NULL, rev = FALSE, pch = 21, cex = 1, |
58 | 58 | #' border = getOption("mapsf.fg"), lwd = 0.7, col_na = "white",
|
59 | 59 | #' cex_na = 1, pch_na = 4, expandBB, add = FALSE,
|
60 | 60 | #' leg_pos = mf_get_leg_pos(x), leg_title = var, leg_title_cex = 0.8,
|
|
68 | 68 | #' **typo**: displays a typology map of a qualitative variable.
|
69 | 69 | #' `val_order` is used to set modalities order in the legend.
|
70 | 70 | #' \preformatted{
|
71 |
| -#' mf_map(x, var, type = "typo", pal = "Dynamic", alpha = 1, rev = FALSE, |
| 71 | +#' mf_map(x, var, type = "typo", pal = "Dynamic", alpha = NULL, rev = FALSE, |
72 | 72 | #' val_order,border = getOption("mapsf.fg"), pch = 21, cex = 1,
|
73 | 73 | #' lwd = 0.7, cex_na = 1, pch_na = 4, col_na = "white",
|
74 | 74 | #' leg_pos = mf_get_leg_pos(x), leg_title = var, leg_title_cex = 0.8,
|
|
82 | 82 | #' **symb**: displays the different modalities of a qualitative variable as
|
83 | 83 | #' symbols.
|
84 | 84 | #' \preformatted{
|
85 |
| -#' mf_map(x, var, type = "symb", pal = "Dynamic", alpha = 1, rev = FALSE, |
| 85 | +#' mf_map(x, var, type = "symb", pal = "Dynamic", alpha = NULL, rev = FALSE, |
86 | 86 | #' border = getOption("mapsf.fg"), pch, cex = 1, lwd = 0.7,
|
87 | 87 | #' col_na = "grey", pch_na = 4, cex_na = 1, val_order,
|
88 | 88 | #' leg_pos = mf_get_leg_pos(x), leg_title = var, leg_title_cex = 0.8,
|
|
96 | 96 | #' `breaks` and `nbreaks`. Symbol sizes are set with `cex`.
|
97 | 97 | #' \preformatted{
|
98 | 98 | #' mf_map(x, var, type = "grad", breaks = "quantile", nbreaks = 3, col = "tomato4",
|
99 |
| -#' border = getOption("mapsf.fg"), pch = 21, cex, lwd, |
| 99 | +#' alpha = NULL, border = getOption("mapsf.fg"), pch = 21, cex, lwd, |
100 | 100 | #' leg_pos = mf_get_leg_pos(x), leg_title = var, leg_title_cex = 0.8,
|
101 | 101 | #' leg_val_cex = 0.6, leg_val_rnd = 2, leg_frame = FALSE,
|
102 | 102 | #' leg_adj = c(0, 0), leg_size = 1, leg_border = border,
|
|
110 | 110 | #' quantitative variable.
|
111 | 111 | #' \preformatted{
|
112 | 112 | #' mf_map(x, var, type = "prop_choro", inches = 0.3, val_max, symbol = "circle",
|
113 |
| -#' pal = "Mint", alpha = 1, rev = FALSE, breaks = "quantile", nbreaks, |
| 113 | +#' pal = "Mint", alpha = NULL, rev = FALSE, breaks = "quantile", nbreaks, |
114 | 114 | #' border = getOption("mapsf.fg"), lwd = 0.7, col_na = "white",
|
115 | 115 | #' leg_pos = mf_get_leg_pos(x, 1), leg_title = var,
|
116 | 116 | #' leg_title_cex = c(0.8, 0.8), leg_val_cex = c(0.6, 0.6),
|
|
127 | 127 | #' variable.
|
128 | 128 | #' \preformatted{
|
129 | 129 | #' mf_map(x, var, type = "prop_typo", inches = 0.3, val_max, symbol = "circle",
|
130 |
| -#' pal = "Dynamic", alpha = 1, rev = FALSE, val_order, |
| 130 | +#' pal = "Dynamic", alpha = NULL, rev = FALSE, val_order, |
131 | 131 | #' border = getOption("mapsf.fg"), lwd = 0.7, lwd_max = 15,
|
132 | 132 | #' col_na = "white",
|
133 | 133 | #' leg_pos = mf_get_leg_pos(x, 1), leg_title = var,
|
|
144 | 144 | #' variable as symbols colored to reflect the classification of a second
|
145 | 145 | #' quantitative variable.
|
146 | 146 | #' \preformatted{
|
147 |
| -#' mf_map(x, var, type = "symb_choro", pal = "Mint", alpha = 1, rev = FALSE, |
| 147 | +#' mf_map(x, var, type = "symb_choro", pal = "Mint", alpha = NULL, rev = FALSE, |
148 | 148 | #' breaks = "quantile", nbreaks, border = getOption("mapsf.fg"),
|
149 | 149 | #' pch, cex = 1, lwd = 0.7, pch_na = 4, cex_na = 1, col_na = "white",
|
150 | 150 | #' val_order,
|
|
0 commit comments