diff --git a/.Rbuildignore b/.Rbuildignore
index 31494e8..f529ba5 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -7,3 +7,4 @@
^_pkgdown\.yml$
^docs$
^pkgdown$
+^data-raw$
diff --git a/DESCRIPTION b/DESCRIPTION
index 663ecb1..083bbdd 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Package: visualizeR
Type: Package
Title: What a color! What a viz!
-Version: 0.2.9000
+Version: 0.3.9000
Authors@R: c(
person(
'Noblet', 'Guillaume',
@@ -24,6 +24,6 @@ Imports:
grDevices,
glue,
scales,
- ggblanket (>= 1.5.0)
-Suggests: knitr, sf
+ ggblanket (== 1.6.1)
+Suggests: knitr, sf, tmap
VignetteBuilder: knitr
diff --git a/NAMESPACE b/NAMESPACE
index 40ea8e2..6b1f9a3 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -1 +1 @@
-exportPattern("^[[:alpha:]]+")
+exportPattern("^[^\\.]")
diff --git a/NEWS.md b/NEWS.md
index b1a9f74..fa45d9e 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,9 @@
+# visualizeR 0.3.9000
+
+* Breaking changes: update to `ggblanket` v1.6.1.
+* Add plotting functions for indicator maps.
+
+
# visualizeR 0.2.9000
* Breaking changes: almost all functions got refinements, and there are new functions, typically `hbar()` becomes `bar_reach()` and `point_reach()` is added.
diff --git a/R/bar.R b/R/bar.R
index 6f7e77e..094b97a 100644
--- a/R/bar.R
+++ b/R/bar.R
@@ -21,7 +21,6 @@
#' @param title_size The size of the title text. Defaults to 14.
#' @param legend_position Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".
#' @param legend_rev Reverse the color in the guide? Default to TRUE.
-#' @param void Boolean to remove all elements from the plot. Default to FALSE.
#' @param ... Other arguments to be passed to "ggblanket::gg_col"
#'
#' @description `ggblanket` as internals for deciding whether the bar chart is horizontally readable.
@@ -29,7 +28,7 @@
#' @return A bar chart
#'
#' @export
-bar_reach <- function(df, x, y, group = NULL, percent = TRUE, palette = "main", reverse = FALSE, family = "Leelawadee", alpha = 1, width = 0.5, x_title = NULL, y_title = NULL, group_title = NULL, position = "dodge", title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = "right", legend_rev = TRUE, void = FALSE, ...){
+bar_reach <- function(df, x, y, group = NULL, percent = TRUE, palette = "main", reverse = FALSE, family = "Leelawadee", alpha = 1, width = 0.5, x_title = NULL, y_title = NULL, group_title = NULL, position = "dodge", title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = "right", legend_rev = TRUE, ...){
pal <- pal_reach(palette)
@@ -64,9 +63,8 @@ bar_reach <- function(df, x, y, group = NULL, percent = TRUE, palette = "main",
title_size = title_size,
plot_background_pal = "#FFFFFF",
panel_background_pal = "#FFFFFF",
- legend_reverse = legend_rev,
- void = FALSE
- ),
+ legend_reverse = legend_rev
+ ),
...
)
diff --git a/R/data.R b/R/data.R
new file mode 100644
index 0000000..8101ff4
--- /dev/null
+++ b/R/data.R
@@ -0,0 +1,93 @@
+#' Haïti admin 1 centroids shapefile.
+#'
+#' A multipoint shapefile of Haiti's admin 1.
+#'
+#' @format A sf multipoint object with 10 features and 9 fields:
+#' \describe{
+#' \item{ADM1_PC}{Admin 1 postal code.}
+#' \item{ADM1_EN}{Full name in English.}
+#' \item{ADM1_FR}{Full name in French.}
+#' \item{ADM1_HT}{Full name in Haitian Creole.}
+#' \item{ADM0_EN}{Country name in English.}
+#' \item{ADM0_FR}{Country name in French.}
+#' \item{ADM0_HT}{Country name in Haitian Creole.}
+#' \item{ADM0_PC}{Country postal code.}
+#' \item{ADM1_FR_UPPER}{Admin 1 French name - uppercase.}
+#' \item{geometry}{Multipoint geometry.}
+#' }
+"centroid_admin1"
+
+
+#' Indicator admin 1 polygons shapefile.
+#'
+#' A multipolygon shapefile of Haiti's admin 1 with an indicator column 'opn_dfc'.
+#'
+#' @format A sf multipoint object with 10 features and 10 fields:
+#' \describe{
+#' \item{ADM1_PC}{Admin 1 postal code.}
+#' \item{admin1}{Admin 1 unique id.}
+#' \item{opn_dfc}{Proportion of HHs that reported open defecation as sanitation facility.}
+#' \item{ADM1_EN}{Full name in English.}
+#' \item{ADM1_FR}{Full name in French.}
+#' \item{ADM1_HT}{Full name in Haitian Creole.}
+#' \item{ADM0_EN}{Country name in English.}
+#' \item{ADM0_FR}{Country name in French.}
+#' \item{ADM0_HT}{Country name in Haitian Creole.}
+#' \item{ADM0_PC}{Country postal code.}
+#' \item{geometry}{Multipolygon geometry.}
+#' }
+"indicator_admin1"
+
+
+#' Haïti admin 1 lines shapefile.
+#'
+#' A multiline shapefile of Haiti's admin 1.
+#'
+#' @format A sf multiline object with 10 features and 8 fields:
+#' \describe{
+#' \item{ADM1_EN}{Full name in English.}
+#' \item{ADM1_FR}{Full name in French.}
+#' \item{ADM1_HT}{Full name in Haitian Creole.}
+#' \item{ADM0_EN}{Country name in English.}
+#' \item{ADM0_FR}{Country name in French.}
+#' \item{ADM0_HT}{Country name in Haitian Creole.}
+#' \item{ADM0_PCODE}{Country postal code.}
+#' \item{geometry}{Multiline geometry.}
+#' }
+"line_admin1"
+
+
+#' Haïti border.
+#'
+#' A multiline shapefile of Haiti's border.
+#'
+#' @format A sf multiline objet with 1 feature and 6 fields:
+#' \describe{
+#' \item{fid_1}{fid_1}
+#' \item{uno}{uno}
+#' \item{count}{count}
+#' \item{x_coord}{x_coord}
+#' \item{y_coord}{y_coord}
+#' \item{area}{area}
+#' \item{geometry}{Multiline geometry.}
+#' }
+"border_admin0"
+
+
+#' Haïti frontier with Dominican Republic.
+#'
+#' A multiline shapefile of Haiti's frontier with Dominican Republic.
+#'
+#' @format A sf multipoint objet with 4 features and 8 fields:
+#' \describe{
+#' \item{fid_1}{fid_1}
+#' \item{objectid}{objectid}
+#' \item{id}{id}
+#' \item{fromnode}{fromnode}
+#' \item{tonode}{tonode}
+#' \item{leftpolygo}{leftpolygo}
+#' \item{rightpolygo}{rightpolygo}
+#' \item{shape_leng}{shape_leng}
+#' \item{geometry}{Multiline geometry.}
+#' }
+"frontier_admin0"
diff --git a/R/map.R b/R/map.R
new file mode 100644
index 0000000..3e9ac1b
--- /dev/null
+++ b/R/map.R
@@ -0,0 +1,354 @@
+
+
+#' Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values
+#'
+#' @param poly Multipolygon shape defined by sf package.
+#' @param col Numeric attribute to map.
+#' @param buffer A buffer, either one value or a vector of 4 values (left, bottom, right, top).
+#' @param n The desire number of classes.
+#' @param style Method to process the color scale for continuous numerical variables. See `classInt::classIntervals()` for details.
+#' @param palette Vector of fill colors as hexadecimal values. For REACH color palettes, it is possible to use `pal_reach()`. For now,'palette' must be changed manually, accordingly to the number of drawn classes.
+#' @param as_count Boolean. When col is a numeric variable, should it be processed as a count variable? For instance, 0, 1-10, 11-20.
+#' @param color_na Fill color for missing data.
+#' @param text_na Legend text for missing data.
+#' @param legend_title Legend title.
+#' @param legend_text_separator Text separator for classes. E.g. " to " will give 0, 1 to 10, 11 to 20.
+#' @param border_alpha Transparency of the border.
+#' @param border_col Color of the border.
+#' @param lwd Linewidth of the border.
+#' @param ... Other arguments to pass to `tmap::tm_polygons()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_indicator_layer <- function(
+ poly,
+ col,
+ buffer = NULL,
+ n = 5,
+ style = "pretty",
+ palette = pal_reach("red_5"),
+ as_count = TRUE,
+ color_na = cols_reach("white"),
+ text_na = "Missing data",
+ legend_title = "Proportion (%)",
+ legend_text_separator = " - ",
+ border_alpha = 1,
+ border_col = cols_reach("lt_grey_1"),
+ lwd = 1,
+ ...){
+
+ #------ Checks and make valid
+
+ rlang::check_installed("tmap", reason = "Package \"tmap\" needed for `add_indicator_layer()` to work. Please install it.")
+
+ poly <- sf::st_make_valid(poly)
+
+ #------ Other checks
+
+ col_name <- rlang::as_name(rlang::enquo(col))
+ if_not_in_stop(poly, col_name, "poly", "col")
+
+ if (!is.numeric(poly[[col_name]])) rlang::abort(glue::glue("{col_name} is not numeric."))
+
+
+ #------ Prepare data
+
+ if(!is.null(buffer)){ buffer <- buffer_bbox(poly, buffer) } else { buffer <- NULL }
+
+
+ #------ Polygon layer
+
+ layer <- tmap::tm_shape(
+ poly,
+ bbox = buffer
+ ) +
+ tmap::tm_polygons(
+ col = col_name,
+ n = n,
+ style = style,
+ palette = palette,
+ as.count = as_count,
+ colorNA = color_na,
+ textNA = text_na,
+ title = legend_title,
+ legend.format = list(text.separator = legend_text_separator),
+ borderl.col = border_col,
+ border.alpha = border_alpha,
+ lwd = lwd,
+ ...
+ )
+
+ return(layer)
+
+}
+
+
+
+
+#' Add admin boundaries (lines) and the legend
+#'
+#' @param lines List of multiline shape defined by sf package.
+#' @param colors Vector of hexadecimal codes. Same order as lines.
+#' @param labels Vector of labels in the legend. Same order as lines.
+#' @param lwds Vector of line widths. Same order as lines.
+#' @param title Legend title.
+#' @param buffer A buffer, either one value or a vector of 4 values (left, bottom, right, top).
+#' @param ... Other arguments to pass to each shape in `tmap::tm_lines()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_admin_boundaries <- function(lines, colors, labels, lwds, title = "", buffer = NULL, ...){
+
+
+ #------ Package check
+
+ rlang::check_installed("tmap", reason = "Package \"tmap\" needed for `add_admin_boundaries()` to work. Please install it.")
+
+
+ #------ Check that the length of vectors is identical between arguments
+
+ if(!inherits(lines, "list")) rlang::abort("Please provide a list for lines.")
+
+ ll <- list(lines, colors, labels, lwds)
+ if (!all(sapply(ll,length) == length(ll[[1]]))) rlang::abort("lines, colors, labels, lwds do not all have the same length.")
+
+
+ #------ Make valid
+
+ lines <- lapply(lines, \(x) sf::st_make_valid(x))
+
+
+ #------ Prepare legend
+ legend_lines <- tmap::tm_add_legend("line",
+ title = title,
+ col = colors,
+ lwd = lwds,
+ labels = labels)
+
+
+ #------ Let's go with all line shapes
+
+ if(!is.null(buffer)){ buffer <- buffer_bbox(lines[[1]], buffer) } else { buffer <- NULL }
+
+
+ layers <- tmap::tm_shape(lines[[1]], bbox = buffer) +
+ tmap::tm_lines(lwd = lwds[[1]], col = colors[[1]], ...)
+
+ if (length(lines) == 1) {
+
+ layers <- layers + legend_lines
+
+ return(layers)
+
+ } else {
+
+ for(i in 2:length(lines)){
+
+ layers <- layers + tmap::tm_shape(shp = lines[[i]]) + tmap::tm_lines(lwd = lwds[[i]], col = colors[[i]], ...)
+ }
+
+ layers <- layers + legend_lines
+
+ return(layers)
+
+ }
+}
+
+
+
+
+#' Basic defaults based on `tmap::tm_layout()`
+#'
+#' @param title Map title.
+#' @param legend_position Legend position. Not above the map is a good start.
+#' @param frame Boolean. Legend frame?
+#' @param legend_frame Legend frame color.
+#' @param legend_text_size Legend text size in 'pt'.
+#' @param legend_title_size Legend title size in 'pt'.
+#' @param title_size Title text size in 'pt'.
+#' @param title_fontface Title fontface. Bold if you wanna exemplify a lot what it is about.
+#' @param title_color Title font color.
+#' @param fontfamily Overall fontfamily. Leelawadee is your precious.
+#' @param ... Other arguments to pass to `tmap::tm_layout()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_layout <- function(
+ title = NULL,
+ legend_position = c(0.02, 0.5),
+ frame = FALSE,
+ legend_frame = cols_reach("main_grey"),
+ legend_text_size = 0.6,
+ legend_title_size = 0.8,
+ title_size = 0.9,
+ title_fontface = "bold",
+ title_color = cols_reach("main_grey"),
+ # check.and.fix = TRUE,
+ fontfamily = "Leelawadee",
+ ...){
+
+ layout <- tmap::tm_layout(
+ title = title,
+ legend.position = legend_position,
+ legend.frame = legend_frame,
+ frame = FALSE,
+ legend.text.size = legend_text_size,
+ legend.title.size = legend_title_size,
+ title.size = title_size,
+ title.fontface = title_fontface,
+ title.color = title_color,
+ fontfamily = fontfamily,
+ ...)
+
+ return(layout)
+
+ }
+
+
+
+
+#' Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels.
+#'
+#' @param point Multipoint shape defined by sf package.
+#' @param text Text labels column.
+#' @param size Relative size of the text labels.
+#' @param fontface Fontface.
+#' @param fontfamily Fontfamily. Leelawadee is your precious.
+#' @param shadow Boolean. Add a shadow around text labels. Issue opened on Github to request.
+#' @param auto_placement Logical that determines whether the labels are placed automatically.
+#' @param remove_overlap Logical that determines whether the overlapping labels are removed.
+#' @param ... Other arguments to pass to `tmap::tm_text()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_admin_labels <- function(point,
+ text,
+ size = 0.5,
+ fontface = "bold",
+ fontfamily = "Leelawadee",
+ shadow = TRUE,
+ auto_placement = FALSE,
+ remove_overlap = FALSE,
+ ...){
+
+
+ #------ Restrictive sf checks (might not be necessary depending on the desired behaviour)
+
+ rlang::check_installed("tmap", reason = "Package \"tmap\" needed for `add_indicator_layer()` to work. Please install it.")
+
+ point <- sf::st_make_valid(point)
+
+ #------ Other checks
+
+ text_name <- rlang::as_name(rlang::enquo(text))
+ if_not_in_stop(point, text_name, "point", "text")
+
+ #------ Point text layer
+
+ layer <- tmap::tm_shape(point) +
+ tmap::tm_text(text = text_name,
+ size = size,
+ fontface = fontface,
+ fontfamily = fontfamily,
+ shadow = shadow,
+ auto.placement = auto_placement,
+ remove.overlap = remove_overlap,
+ ...)
+
+ return(layer)
+
+}
+
+
+
+
+#' Add a compass
+#'
+#' @param text_size Relative font size.
+#' @param position Position of the compass. Vector of two values, specifying the x and y coordinates.
+#' @param color_dark Color of the dark parts of the compass.
+#' @param text_color color of the text.
+#' @param type Compass type, one of: "arrow", "4star", "8star", "radar", "rose".
+#' @param ... Other arguments to pass to `tmap::tm_compass()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_compass <- function(text_size = 0.6,
+ position = c("right", 0.8),
+ color_dark = cols_reach("black"),
+ text_color = cols_reach("black"),
+ type = "4star",
+ ...){
+
+ compass <- tmap::tm_compass(
+ text.size = text_size,
+ position = position,
+ color.dark = color_dark,
+ type = type,
+ text.color = text_color
+ )
+
+ return(compass)
+
+}
+
+
+
+
+#' Add a scale bar
+#'
+#' @param text_size Relative font size.
+#' @param position Position of the compass. Vector of two values, specifying the x and y coordinates.
+#' @param color_dark Color of the dark parts of the compass.
+#' @param breaks Breaks of the scale bar. If not specified, breaks will be automatically be chosen given the prefered width of the scale bar. Example: c(0, 50, 100).
+#' @param ... Other arguments to pass to `tmap::tm_compass()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_scale_bar <- function(text_size = 0.6,
+ position = c("left", 0.01),
+ color_dark = cols_reach("black"),
+ breaks = c(0, 50, 100),
+ ...){
+
+ scale_bar <- tmap::tm_scale_bar(
+ text.size = text_size,
+ position = position,
+ color.dark = color_dark,
+ breaks = breaks,
+ ...
+ )
+
+ return(scale_bar)
+
+}
+
+
+
+
+#' Do you want to credit someone or some institution?
+#'
+#' @param text Text.
+#' @param size Relative text size.
+#' @param bg_color Background color.
+#' @param position Position. Vector of two coordinates. Usually somewhere down.
+#' @param ... Other arguments to pass to `tmap::tm_credits()`.
+#'
+#' @return A tmap layer.
+#' @export
+#'
+add_credits <- function(text, size = 0.4, bg_color = NA, position = c(0.75, 0.02), ...){
+
+ tmap::tm_credits(text,
+ size = size,
+ bg.color = bg_color,
+ position = position,
+ ...)
+}
+
diff --git a/R/point.R b/R/point.R
index ed7c973..7e7b551 100644
--- a/R/point.R
+++ b/R/point.R
@@ -18,7 +18,6 @@
#' @param text_size The size of all text other than the title, subtitle and caption. Defaults to 10.
#' @param title_size The size of the title text. Defaults to 14.
#' @param legend_position Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".
-#' @param void Boolean to remove all elements from the plot. Default to FALSE.
#' @param ... Other arguments to be passed to "ggblanket::gg_col"
#'
#' @description `ggblanket` as internals for deciding whether the bar chart is horizontally readable.
@@ -26,7 +25,7 @@
#' @return A bar chart
#'
#' @export
-point_reach <- function(df, x, y, group = NULL, palette = "main", reverse = FALSE, family = "Leelawadee", alpha = 1, size = 1.5, x_title = NULL, y_title = NULL, group_title = NULL, title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = "right", void = FALSE, ...){
+point_reach <- function(df, x, y, group = NULL, palette = "main", reverse = FALSE, family = "Leelawadee", alpha = 1, size = 1.5, x_title = NULL, y_title = NULL, group_title = NULL, title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = "right", ...){
pal <- pal_reach(palette)
@@ -56,8 +55,7 @@ point_reach <- function(df, x, y, group = NULL, palette = "main", reverse = FALS
text_size = text_size,
title_size = title_size,
plot_background_pal = "#FFFFFF",
- panel_background_pal = "#FFFFFF",
- void = FALSE
+ panel_background_pal = "#FFFFFF"
),
...
)
diff --git a/R/theme_reach.R b/R/theme_reach.R
index 755800c..fe5601b 100644
--- a/R/theme_reach.R
+++ b/R/theme_reach.R
@@ -11,7 +11,6 @@
#' @param legend_position Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".
#' @param legend_direction Direction of the legend. Default to "vertical". Can take "vertical" or "horizontal".
#' @param legend_reverse Reverse the color in the guide? Default to TRUE.
-#' @param void Boolean to remove all elements from the plot. Default to FALSE.
#' @param ... Additional arguments passed to `ggblanket::gg_theme()`.
#'
#'
@@ -29,7 +28,6 @@ theme_reach <- function(
title_size = 14,
plot_background_pal = "#FFFFFF",
panel_background_pal = "#FFFFFF",
- void = FALSE,
legend_position = "right",
legend_direction = "vertical",
legend_reverse = TRUE,
@@ -42,9 +40,7 @@ theme_reach <- function(
text_size = text_size,
title_size = title_size,
plot_background_pal = plot_background_pal,
- panel_background_pal = panel_background_pal,
- void = void
- )
+ panel_background_pal = panel_background_pal)
# Default legend to right position
diff --git a/README.Rmd b/README.Rmd
index 62c10c6..ae39c52 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -50,8 +50,7 @@ Roadmap is as follows:
Please, do not hesitate to pull request any new viz or colors or color palettes, or to email request any change (guillaume.noblet@reach-initiative.org or gnoblet@zaclys.net).
-
-## Example 1: extracting colors
+## Colors
Color palettes for REACH, AGORA and IMPACT are available. Functions to access colors and palettes are `cols_initiative()` or `pal_initiative()`. For now, the initiative with the most colors and color palettes is REACH. Feel free to pull requests new AGORA and IMPACT colors.
@@ -67,7 +66,10 @@ pal_reach(palette = "main", reversed = TRUE, color_ramp_palette = FALSE)
# Get all color palettes names
pal_reach(show_palettes = T)
```
-## Example 2: Bar chart, already REACH themed
+
+## Charts
+
+### Example 1: Bar chart, already REACH themed
```{r example-bar-chart, eval = TRUE}
library(visualizeR)
@@ -88,7 +90,7 @@ bar_reach(df, mean_bl, island, species, percent = FALSE, x_title = "Mean of bill
bar_reach(df, mean_bl, island, species, percent = FALSE, palette = "artichoke_3", legend_rev = TRUE)
```
-## Example 3: Point chart, already REACH themed
+### Example 2: Point chart, already REACH themed
At this stage, `point_reach()` only supports categorical grouping colors with the `group` arg.
@@ -104,3 +106,42 @@ point_reach(penguins, bill_length_mm, flipper_length_mm, island, alpha = 0.6, si
point_reach(penguins, bill_length_mm, flipper_length_mm, island, palette = "artichoke_3")
```
+## Maps
+
+```{r example-map}
+
+# Add indicator layer
+# - based on "pretty" classes and title "Proportion (%)"
+# - buffer to add a 10% around the bounding box
+map <- add_indicator_layer(
+ indicator_admin1,
+ opn_dfc,
+ buffer = 0.1) +
+ # Layout - some defaults - add the map title
+ add_layout("% of HH that reported open defecation as sanitation facility") +
+ # Admin boundaries as list of shape files (lines) and colors, line widths and labels as vectors
+ add_admin_boundaries(
+ lines = list(line_admin1, border_admin0, frontier_admin0),
+ colors = cols_reach("main_lt_grey", "dk_grey", "black"),
+ lwds = c(0.5, 2, 3),
+ labels = c("Department", "Country", "Dominican Rep. frontier"),
+ title = "Administrative boundaries") +
+ # Add text labels - centered on admin 1 centroids
+ add_admin_labels(centroid_admin1, ADM1_FR_UPPER) +
+ # Add a compass
+ add_compass() +
+ # Add a scale bar
+ add_scale_bar() +
+ # Add credits
+ add_credits("Admin. boundaries. : CNIGS \nCoord. system: GCS WGS 1984")
+```
+
+```{r map-save, eval = TRUE, include = FALSE, echo = TRUE}
+tmap::tmap_save(map,
+ "man/figures/README-example-map.png",
+ height = 4.5,
+ width = 6
+ )
+```
+
+
diff --git a/README.md b/README.md
index 331fdc7..2fec6ca 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ Please, do not hesitate to pull request any new viz or colors or color
palettes, or to email request any change
( or ).
-## Example 1: extracting colors
+## Colors
Color palettes for REACH, AGORA and IMPACT are available. Functions to
access colors and palettes are `cols_initiative()` or
@@ -73,7 +73,9 @@ pal_reach(show_palettes = T)
#> [33] "blue_4" "blue_5" "blue_6" "blue_7"
```
-## Example 2: Bar chart, already REACH themed
+## Charts
+
+### Example 1: Bar chart, already REACH themed
``` r
library(visualizeR)
@@ -101,7 +103,7 @@ bar_reach(df, mean_bl, island, species, percent = FALSE, palette = "artichoke_3"
-## Example 3: Point chart, already REACH themed
+### Example 2: Point chart, already REACH themed
At this stage, `point_reach()` only supports categorical grouping colors
with the `group` arg.
@@ -129,3 +131,36 @@ point_reach(penguins, bill_length_mm, flipper_length_mm, island, palette = "arti
```
+
+## Maps
+
+``` r
+
+# Add indicator layer
+# - based on "pretty" classes and title "Proportion (%)"
+# - buffer to add a 10% around the bounding box
+map <- add_indicator_layer(
+ indicator_admin1,
+ opn_dfc,
+ buffer = 0.1) +
+ # Layout - some defaults - add the map title
+ add_layout("% of HH that reported open defecation as sanitation facility") +
+ # Admin boundaries as list of shape files (lines) and colors, line widths and labels as vectors
+ add_admin_boundaries(
+ lines = list(line_admin1, border_admin0, frontier_admin0),
+ colors = cols_reach("main_lt_grey", "dk_grey", "black"),
+ lwds = c(0.5, 2, 3),
+ labels = c("Department", "Country", "Dominican Rep. frontier"),
+ title = "Administrative boundaries") +
+ # Add text labels - centered on admin 1 centroids
+ add_admin_labels(centroid_admin1, ADM1_FR_UPPER) +
+ # Add a compass
+ add_compass() +
+ # Add a scale bar
+ add_scale_bar() +
+ # Add credits
+ add_credits("Admin. boundaries. : CNIGS \nCoord. system: GCS WGS 1984")
+```
+
+
diff --git a/data-raw/border_admin0.dbf b/data-raw/border_admin0.dbf
new file mode 100644
index 0000000..2cdd77c
Binary files /dev/null and b/data-raw/border_admin0.dbf differ
diff --git a/data-raw/border_admin0.prj b/data-raw/border_admin0.prj
new file mode 100644
index 0000000..f8e4548
--- /dev/null
+++ b/data-raw/border_admin0.prj
@@ -0,0 +1 @@
+PROJCS["WGS_1984_UTM_Zone_18N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-75.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["m",1.0]]
\ No newline at end of file
diff --git a/data-raw/border_admin0.shp b/data-raw/border_admin0.shp
new file mode 100644
index 0000000..559c58d
Binary files /dev/null and b/data-raw/border_admin0.shp differ
diff --git a/data-raw/border_admin0.shx b/data-raw/border_admin0.shx
new file mode 100644
index 0000000..f4d8240
Binary files /dev/null and b/data-raw/border_admin0.shx differ
diff --git a/data-raw/centroid_admin1.dbf b/data-raw/centroid_admin1.dbf
new file mode 100644
index 0000000..f17bfb9
Binary files /dev/null and b/data-raw/centroid_admin1.dbf differ
diff --git a/data-raw/centroid_admin1.prj b/data-raw/centroid_admin1.prj
new file mode 100644
index 0000000..79392c5
--- /dev/null
+++ b/data-raw/centroid_admin1.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_unknown",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
\ No newline at end of file
diff --git a/data-raw/centroid_admin1.shp b/data-raw/centroid_admin1.shp
new file mode 100644
index 0000000..67811d2
Binary files /dev/null and b/data-raw/centroid_admin1.shp differ
diff --git a/data-raw/centroid_admin1.shx b/data-raw/centroid_admin1.shx
new file mode 100644
index 0000000..f6ca9fc
Binary files /dev/null and b/data-raw/centroid_admin1.shx differ
diff --git a/data-raw/frontier_admin0.dbf b/data-raw/frontier_admin0.dbf
new file mode 100644
index 0000000..20c39d2
Binary files /dev/null and b/data-raw/frontier_admin0.dbf differ
diff --git a/data-raw/frontier_admin0.prj b/data-raw/frontier_admin0.prj
new file mode 100644
index 0000000..f45cbad
--- /dev/null
+++ b/data-raw/frontier_admin0.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
\ No newline at end of file
diff --git a/data-raw/frontier_admin0.shp b/data-raw/frontier_admin0.shp
new file mode 100644
index 0000000..6a7c832
Binary files /dev/null and b/data-raw/frontier_admin0.shp differ
diff --git a/data-raw/frontier_admin0.shx b/data-raw/frontier_admin0.shx
new file mode 100644
index 0000000..aeb62b0
Binary files /dev/null and b/data-raw/frontier_admin0.shx differ
diff --git a/data-raw/indicator_admin1.dbf b/data-raw/indicator_admin1.dbf
new file mode 100644
index 0000000..9dd16e2
Binary files /dev/null and b/data-raw/indicator_admin1.dbf differ
diff --git a/data-raw/indicator_admin1.prj b/data-raw/indicator_admin1.prj
new file mode 100644
index 0000000..f45cbad
--- /dev/null
+++ b/data-raw/indicator_admin1.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
\ No newline at end of file
diff --git a/data-raw/indicator_admin1.shp b/data-raw/indicator_admin1.shp
new file mode 100644
index 0000000..cd956a4
Binary files /dev/null and b/data-raw/indicator_admin1.shp differ
diff --git a/data-raw/indicator_admin1.shx b/data-raw/indicator_admin1.shx
new file mode 100644
index 0000000..114b1d3
Binary files /dev/null and b/data-raw/indicator_admin1.shx differ
diff --git a/data-raw/line_admin1.dbf b/data-raw/line_admin1.dbf
new file mode 100644
index 0000000..27046d0
Binary files /dev/null and b/data-raw/line_admin1.dbf differ
diff --git a/data-raw/line_admin1.prj b/data-raw/line_admin1.prj
new file mode 100644
index 0000000..f45cbad
--- /dev/null
+++ b/data-raw/line_admin1.prj
@@ -0,0 +1 @@
+GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
\ No newline at end of file
diff --git a/data-raw/line_admin1.shp b/data-raw/line_admin1.shp
new file mode 100644
index 0000000..5a39a4b
Binary files /dev/null and b/data-raw/line_admin1.shp differ
diff --git a/data-raw/line_admin1.shx b/data-raw/line_admin1.shx
new file mode 100644
index 0000000..e078d09
Binary files /dev/null and b/data-raw/line_admin1.shx differ
diff --git a/data-raw/shapefiles.R b/data-raw/shapefiles.R
new file mode 100644
index 0000000..13db57a
--- /dev/null
+++ b/data-raw/shapefiles.R
@@ -0,0 +1,21 @@
+
+#------ Border - admin 0
+border_admin0 <- sf::st_read("data-raw/border_admin0.shp")
+usethis::use_data(border_admin0, overwrite = TRUE)
+
+#------ Frontier - admin 0
+frontier_admin0 <- sf::st_read("data-raw/frontier_admin0.shp")
+usethis::use_data(frontier_admin0, overwrite = TRUE)
+
+#------ Line - admin 1
+line_admin1 <- sf::st_read("data-raw/line_admin1.shp")
+usethis::use_data(line_admin1, overwrite = TRUE)
+
+#------ Centroid - admin 1
+centroid_admin1 <- sf::st_read("data-raw/centroid_admin1.shp") |>
+ dplyr::rename(ADM1_FR_UPPER = ADM1_FR_)
+usethis::use_data(centroid_admin1, overwrite = TRUE)
+
+#------ Indicator polygon - admin 1
+indicator_admin1 <- sf::st_read("data-raw/indicator_admin1.shp")
+usethis::use_data(indicator_admin1, overwrite = TRUE)
diff --git a/data/border_admin0.rda b/data/border_admin0.rda
new file mode 100644
index 0000000..a6400e1
Binary files /dev/null and b/data/border_admin0.rda differ
diff --git a/data/centroid_admin1.rda b/data/centroid_admin1.rda
new file mode 100644
index 0000000..f144be5
Binary files /dev/null and b/data/centroid_admin1.rda differ
diff --git a/data/frontier_admin0.rda b/data/frontier_admin0.rda
new file mode 100644
index 0000000..b57263a
Binary files /dev/null and b/data/frontier_admin0.rda differ
diff --git a/data/indicator_admin1.rda b/data/indicator_admin1.rda
new file mode 100644
index 0000000..f1a1a63
Binary files /dev/null and b/data/indicator_admin1.rda differ
diff --git a/data/line_admin1.rda b/data/line_admin1.rda
new file mode 100644
index 0000000..9393fdd
Binary files /dev/null and b/data/line_admin1.rda differ
diff --git a/docs/404.html b/docs/404.html
index 85d1af1..c75726d 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -16,7 +16,7 @@
-
+
GNU General Public License • visualizeRGNU General Public License • visualizeR
@@ -10,7 +10,7 @@
visualizeR
- 0.2.9000
+ 0.3.9000
diff --git a/docs/reference/scale_fill.html b/docs/reference/scale_fill.html
index 69526ee..7fede0e 100644
--- a/docs/reference/scale_fill.html
+++ b/docs/reference/scale_fill.html
@@ -1,5 +1,5 @@
-Fill scale constructor for REACH or AGORA colors — scale_fill • visualizeRFill scale constructor for REACH or AGORA colors — scale_fill • visualizeR
@@ -10,7 +10,7 @@
visualizeR
- 0.2.9000
+ 0.3.9000
@@ -104,7 +104,7 @@ scale_fill_gradient(), used respectively when discrete is TRUE or FALSE.
diff --git a/docs/reference/subvec_not_in.html b/docs/reference/subvec_not_in.html
index 321bdad..91f5e3a 100644
--- a/docs/reference/subvec_not_in.html
+++ b/docs/reference/subvec_not_in.html
@@ -1,5 +1,5 @@
-Subvec not in — subvec_not_in • visualizeRSubvec not in — subvec_not_in • visualizeR
@@ -10,7 +10,7 @@
visualizeR
- 0.2.9000
+ 0.3.9000
@@ -80,7 +80,7 @@
diff --git a/docs/reference/theme_reach.html b/docs/reference/theme_reach.html
index bee6e3c..4d92432 100644
--- a/docs/reference/theme_reach.html
+++ b/docs/reference/theme_reach.html
@@ -1,5 +1,5 @@
-ggplot2 theme with REACH color palettes — theme_reach • visualizeRggplot2 theme with REACH color palettes — theme_reach • visualizeR
@@ -10,7 +10,7 @@
visualizeR
- 0.2.9000
+ 0.3.9000
@@ -60,7 +60,6 @@
title_size = 14,
plot_background_pal = "#FFFFFF",
panel_background_pal = "#FFFFFF",
- void = FALSE,
legend_position = "right",
legend_direction = "vertical",
legend_reverse = TRUE,
@@ -102,10 +101,6 @@
The color for the panel background color. Default to white.
-void
-Boolean to remove all elements from the plot. Default to FALSE.
-
-
legend_position
Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".
@@ -138,7 +133,7 @@
diff --git a/docs/search.json b/docs/search.json
index 1a72d85..9b9c17f 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -1 +1 @@
-[{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://gnoblet.github.io/visualizeR/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Noblet Guillaume. Author, maintainer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Guillaume N (2022). visualizeR: color! viz!. https://github.com/gnoblet/visualizeR, https://gnoblet.github.io/visualizeR/.","code":"@Manual{, title = {visualizeR: What a color! What a viz!}, author = {Noblet Guillaume}, year = {2022}, note = {https://github.com/gnoblet/visualizeR, https://gnoblet.github.io/visualizeR/}, }"},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"visualizer-","dir":"","previous_headings":"","what":"What a color! What a viz!","title":"What a color! What a viz!","text":"color! viz! visualizeR proposes utils get REACH AGORA colors, ready--go color palettes, visualization functions (horizontal hist graph instance).","code":""},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"What a color! What a viz!","text":"can install last version visualizeR GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"gnoblet/visualizeR\", build_vignettes = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"roadmap","dir":"","previous_headings":"","what":"Roadmap","title":"What a color! What a viz!","text":"Roadmap follows: Add IMPACT’s colors Add color palettes internal documentation remains added --7-color palettes black color palettes Add new types visualization (e.g. dumbbell plot) Use examples Add ease-map functions Add interactive functions (maps graphs)","code":""},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"request","dir":"","previous_headings":"","what":"Request","title":"What a color! What a viz!","text":"Please, hesitate pull request new viz colors color palettes, email request change (guillaume.noblet@reach-initiative.org gnoblet@zaclys.net).","code":""},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"What a color! What a viz!","text":"","code":"library(visualizeR) # Get all saved REACH colors, named cols_reach(unnamed = F)"},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":null,"dir":"Reference","previous_headings":"","what":"Abord bad argument — abort_bad_argument","title":"Abord bad argument — abort_bad_argument","text":"Abord bad argument","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Abord bad argument — abort_bad_argument","text":"","code":"abort_bad_argument(arg, must, not = NULL)"},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Abord bad argument — abort_bad_argument","text":"arg argument must arg must Optional. arg must .","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Abord bad argument — abort_bad_argument","text":"stop statement","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Simple bar chart — bar_reach","title":"Simple bar chart — bar_reach","text":"`ggblanket` internals deciding whether bar chart horizontally readable.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Simple bar chart — bar_reach","text":"","code":"bar_reach( df, x, y, group = NULL, percent = TRUE, palette = \"main\", reverse = FALSE, family = \"Leelawadee\", alpha = 1, width = 0.5, x_title = NULL, y_title = NULL, group_title = NULL, position = \"dodge\", title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = \"right\", legend_rev = TRUE, void = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Simple bar chart — bar_reach","text":"df data frame. x numeric column. y character column coercible character column. group grouping categorical column, e.g. administrative areas population groups. percent TRUE FALSE. x-labels displayed percentages? Default TRUE. palette Palette name 'pal_reach()'. reverse Boolean indicating whether palette reversed. family font family plot's texts. Default \"Leelawadee\". alpha Transparency. width Width. x_title x scale title. Default NULL. y_title y scale title. Default NULL. group_title group legend title. Default NULL. position chart stacked? Default \"dodge\". Can take \"dodge\" \"stack\". title Plot title. Default NULL. subtitle Plot subtitle. Default NULL. caption Caption title string. Default NULL. text_size size text title, subtitle caption. Defaults 10. title_size size title text. Defaults 14. legend_position Position legend; Default \"right\". Can take \"right\", \"left\", \"top\", \"bottom\" \"none\". legend_rev Reverse color guide? Default TRUE. void Boolean remove elements plot. Default FALSE. ... arguments passed \"ggblanket::gg_col\"","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Simple bar chart — bar_reach","text":"bar chart","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":null,"dir":"Reference","previous_headings":"","what":"Bbbox buffer — buffer_bbox","title":"Bbbox buffer — buffer_bbox","text":"Bbbox buffer","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bbbox buffer — buffer_bbox","text":"","code":"buffer_bbox(sf_obj, buffer = 0)"},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bbbox buffer — buffer_bbox","text":"sf_obj `sf` object buffer buffer, either one value vector 4 values (left, bottom, right, top). Default 0.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bbbox buffer — buffer_bbox","text":"bbox buffer","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":null,"dir":"Reference","previous_headings":"","what":"Function to extract AGORA colors as hex codes — cols_agora","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"Function extract AGORA colors hex codes","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"","code":"cols_agora(..., unnamed = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"... Character names reach colors. NULL returns colors unnamed output vector unnamed? Default `TRUE`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"hex code hex codes named unnamed","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"function needs modified add colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":null,"dir":"Reference","previous_headings":"","what":"Function to extract IMPACT colors as hex codes — cols_impact","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"Function extract IMPACT colors hex codes","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"","code":"cols_impact(..., unnamed = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"... Character names reach colors. NULL returns colors unnamed output vector unnamed? Default `TRUE`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"hex code hex codes named unnamed","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"function needs modified add colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Function to extract REACH colors as hex codes — cols_reach","title":"Function to extract REACH colors as hex codes — cols_reach","text":"Function extract REACH colors hex codes","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function to extract REACH colors as hex codes — cols_reach","text":"","code":"cols_reach(..., unnamed = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function to extract REACH colors as hex codes — cols_reach","text":"... Character names reach colors. NULL returns colors unnamed output vector unnamed? Default `TRUE`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function to extract REACH colors as hex codes — cols_reach","text":"hex code hex codes named unnamed","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Function to extract REACH colors as hex codes — cols_reach","text":"function needs modified add colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":null,"dir":"Reference","previous_headings":"","what":"Stop statement ","title":"Stop statement ","text":"Stop statement \"colnames\" colnames","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Stop statement ","text":"","code":"if_not_in_stop(.tbl, cols, df, arg = NULL)"},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Stop statement ","text":".tbl tibble cols vector column names (quoted) df Provide tibble name character string arg Default NULL.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Stop statement ","text":"stop statement","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":null,"dir":"Reference","previous_headings":"","what":"Stop statement ","title":"Stop statement ","text":"Stop statement \"vector\"","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Stop statement ","text":"","code":"if_vec_not_in_stop(vec, cols, vec_name, arg = NULL)"},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Stop statement ","text":"vec vector character strings cols set character strings vec_name Provide vector name character string arg Default NULL.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Stop statement ","text":"stop statement elements vec cols","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":null,"dir":"Reference","previous_headings":"","what":"Return function to interpolate an AGORA color palette — pal_agora","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"Return function interpolate AGORA color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"","code":"pal_agora( palette = \"main\", reverse = FALSE, color_ramp_palette = FALSE, show_palettes = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"palette Character name palette AGORA palettes reverse Boolean indicating whether palette reversed color_ramp_palette output `grDevices::colorRampPalette` function vector hex codes? Default former `TRUE` show_palettes ouput set palettes names pick ? Default `FALSE` ... Additional arguments pass colorRampPalette()","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":null,"dir":"Reference","previous_headings":"","what":"Return function to interpolate an IMPACT color palette — pal_impact","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"Return function interpolate IMPACT color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"","code":"pal_impact( palette = \"main\", reverse = FALSE, color_ramp_palette = FALSE, show_palettes = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"palette Character name palette IMPACT palettes reverse Boolean indicating whether palette reversed color_ramp_palette output `grDevices::colorRampPalette` function vector hex codes? Default former `TRUE` show_palettes ouput set palettes names pick ? Default `FALSE` ... Additional arguments pass colorRampPalette()","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Return function to interpolate a REACH color palette — pal_reach","title":"Return function to interpolate a REACH color palette — pal_reach","text":"Return function interpolate REACH color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return function to interpolate a REACH color palette — pal_reach","text":"","code":"pal_reach( palette = \"main\", reverse = FALSE, color_ramp_palette = FALSE, show_palettes = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return function to interpolate a REACH color palette — pal_reach","text":"palette Character name palette REACH palettes reverse Boolean indicating whether palette reversed color_ramp_palette output `grDevices::colorRampPalette` function vector hex codes? Default former `TRUE` show_palettes ouput set palettes names pick ? Default `FALSE` ... Additional arguments pass colorRampPalette()","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return function to interpolate a REACH color palette — pal_reach","text":"color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Simple point chart — point_reach","title":"Simple point chart — point_reach","text":"`ggblanket` internals deciding whether bar chart horizontally readable.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Simple point chart — point_reach","text":"","code":"point_reach( df, x, y, group = NULL, palette = \"main\", reverse = FALSE, family = \"Leelawadee\", alpha = 1, size = 1.5, x_title = NULL, y_title = NULL, group_title = NULL, title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = \"right\", void = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Simple point chart — point_reach","text":"df data frame. x numeric column. y character column coercible character column. group grouping categorical column, e.g. administrative areas population groups. palette Palette name 'pal_reach()'. reverse Boolean indicating whether palette reversed. family font family plot's texts. Default \"Leelawadee\". alpha Transparency. size Dot size. Default 1.5. x_title x scale title. Default NULL. y_title y scale title. Default NULL. group_title group legend title. Default NULL. title Plot title. Default NULL. subtitle Plot subtitle. Default NULL. caption Caption title string. Default NULL. text_size size text title, subtitle caption. Defaults 10. title_size size title text. Defaults 14. legend_position Position legend; Default \"right\". Can take \"right\", \"left\", \"top\", \"bottom\" \"none\". void Boolean remove elements plot. Default FALSE. ... arguments passed \"ggblanket::gg_col\"","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Simple point chart — point_reach","text":"bar chart","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":null,"dir":"Reference","previous_headings":"","what":"Color scale constructor for REACH or AGORA colors — scale_color","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"Color scale constructor REACH AGORA colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"","code":"scale_color( initiative = \"reach\", palette = \"main\", discrete = TRUE, reverse = FALSE, reverse_guide = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"initiative Either \"reach\" \"agora. palette Palette name `pal_reach()` `pal_agora()`. discrete Boolean indicating whether color aesthetic discrete . reverse Boolean indicating whether palette reversed. reverse_guide Boolean indicating whether guide reversed. ... Additional arguments passed discrete_scale() scale_fill_gradient(), used respectively discrete TRUE FALSE.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"color scale ggplot","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":null,"dir":"Reference","previous_headings":"","what":"Fill scale constructor for REACH or AGORA colors — scale_fill","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"Fill scale constructor REACH AGORA colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"","code":"scale_fill( initiative = \"reach\", palette = \"main\", discrete = TRUE, reverse = FALSE, reverse_guide = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"initiative Either \"reach\" \"agora. palette Palette name `pal_reach()` `pal_agora()`. discrete Boolean indicating whether color aesthetic discrete . reverse Boolean indicating whether palette reversed. reverse_guide Boolean indicating whether guide reversed. ... Additional arguments passed discrete_scale() scale_fill_gradient(), used respectively discrete TRUE FALSE.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"fill scale ggplot.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":null,"dir":"Reference","previous_headings":"","what":"Subvec not in — subvec_not_in","title":"Subvec not in — subvec_not_in","text":"Subvec ","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Subvec not in — subvec_not_in","text":"","code":"subvec_not_in(vector, set)"},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Subvec not in — subvec_not_in","text":"vector vector subset set set-vector","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Subvec not in — subvec_not_in","text":"subset vector set","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"ggplot2 theme with REACH color palettes — theme_reach","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"Give reach colors fonts ggplot.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"","code":"theme_reach( palette = \"main\", discrete = TRUE, reverse = FALSE, family = \"Leelawadee\", text_size = 10, title_size = 14, plot_background_pal = \"#FFFFFF\", panel_background_pal = \"#FFFFFF\", void = FALSE, legend_position = \"right\", legend_direction = \"vertical\", legend_reverse = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"palette Palette name 'pal_reach()'. discrete Boolean indicating whether color aesthetic discrete . reverse Boolean indicating whether palette reversed. family font family plot's texts. Default \"Leelawadee\". text_size size text title, subtitle caption. Defaults 10. title_size size title text_family. Defaults 14. plot_background_pal color plot background color. Default white. panel_background_pal color panel background color. Default white. void Boolean remove elements plot. Default FALSE. legend_position Position legend; Default \"right\". Can take \"right\", \"left\", \"top\", \"bottom\" \"none\". legend_direction Direction legend. Default \"vertical\". Can take \"vertical\" \"horizontal\". legend_reverse Reverse color guide? Default TRUE. ... Additional arguments passed `ggblanket::gg_theme()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"base REACH theme","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-029000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.2.9000","title":"visualizeR 0.2.9000","text":"Breaking changes: almost functions got refinements, new functions, typically hbar() becomes bar_reach() point_reach() added. Following theme_reach() now used plotting functions. Add README.md.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0179000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.7.9000","title":"visualizeR 0.1.7.9000","text":"Fixed color palettes.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0169000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.6.9000","title":"visualizeR 0.1.6.9000","text":"IMPACT colors palettes added: function cols_impact() pal_impact(). Color palettes REACH added (2 7 continuous palettes) ; see updated cols_reach() pal_reach().","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0159000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.5.9000","title":"visualizeR 0.1.5.9000","text":"Move simplevis successor ggblanket.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0149000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.4.9000","title":"visualizeR 0.1.4.9000","text":"hbar() gains new boolean argument reverse pass pal_reach() pal_agora(), indicating color palette reversed .","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0139000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.3.9000","title":"visualizeR 0.1.3.9000","text":"Small change hbar(): removes error arg within simplevis::gg_hbar() call.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0129000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.2.9000","title":"visualizeR 0.1.2.9000","text":"duplicate scale_color() function, now scale_fill()","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0119000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.1.9000","title":"visualizeR 0.1.1.9000","text":"Added two horizontal bar functions: hbar(), hbar_percent() (#3) Added internals check missing columns bad arguments (#3) Modified theme_reach() documentation Add buffer_bbox() function produce buffered bbox, e.g. use tmap","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-010","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.0","title":"visualizeR 0.1.0","text":"Added NEWS.md file track changes package Initiate repo","code":""}]
+[{"path":"https://gnoblet.github.io/visualizeR/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Noblet Guillaume. Author, maintainer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Guillaume N (2022). visualizeR: color! viz!. https://github.com/gnoblet/visualizeR, https://gnoblet.github.io/visualizeR/.","code":"@Manual{, title = {visualizeR: What a color! What a viz!}, author = {Noblet Guillaume}, year = {2022}, note = {https://github.com/gnoblet/visualizeR, https://gnoblet.github.io/visualizeR/}, }"},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"visualizer-","dir":"","previous_headings":"","what":"What a color! What a viz!","title":"What a color! What a viz!","text":"color! viz! visualizeR proposes utils get REACH AGORA colors, ready--go color palettes, visualization functions (horizontal hist graph instance).","code":""},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"What a color! What a viz!","text":"can install last version visualizeR GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"gnoblet/visualizeR\", build_vignettes = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"roadmap","dir":"","previous_headings":"","what":"Roadmap","title":"What a color! What a viz!","text":"Roadmap follows: Add IMPACT’s colors Add color palettes internal documentation remains added --7-color palettes black color palettes Add new types visualization (e.g. dumbbell plot) Use examples Add ease-map functions Add interactive functions (maps graphs)","code":""},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"request","dir":"","previous_headings":"","what":"Request","title":"What a color! What a viz!","text":"Please, hesitate pull request new viz colors color palettes, email request change (guillaume.noblet@reach-initiative.org gnoblet@zaclys.net).","code":""},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"colors","dir":"","previous_headings":"","what":"Colors","title":"What a color! What a viz!","text":"Color palettes REACH, AGORA IMPACT available. Functions access colors palettes cols_initiative() pal_initiative(). now, initiative colors color palettes REACH. Feel free pull requests new AGORA IMPACT colors.","code":"library(visualizeR) # Get all saved REACH colors, named cols_reach(unnamed = F)[1:10] #> white black main_grey main_red main_lt_grey main_beige #> \"#FFFFFF\" \"#000000\" \"#58585A\" \"#EE5859\" \"#C7C8CA\" \"#D2CBB8\" #> iroise_1 iroise_2 iroise_3 iroise_4 #> \"#DFECEF\" \"#B1D7E0\" \"#699DA3\" \"#236A7A\" # Extract a color palette as hexadecimal codes and reversed pal_reach(palette = \"main\", reversed = TRUE, color_ramp_palette = FALSE) #> [1] \"#58585A\" \"#EE5859\" \"#C7C8CA\" \"#D2CBB8\" # Get all color palettes names pal_reach(show_palettes = T) #> [1] \"main\" \"primary\" \"secondary\" \"two_dots\" #> [5] \"two_dots_flashy\" \"red_main\" \"red_main_5\" \"red_alt\" #> [9] \"red_alt_5\" \"iroise\" \"iroise_5\" \"discrete_6\" #> [13] \"red_2\" \"red_3\" \"red_4\" \"red_5\" #> [17] \"red_6\" \"red_7\" \"green_2\" \"green_3\" #> [21] \"green_4\" \"green_5\" \"green_6\" \"green_7\" #> [25] \"artichoke_2\" \"artichoke_3\" \"artichoke_4\" \"artichoke_5\" #> [29] \"artichoke_6\" \"artichoke_7\" \"blue_2\" \"blue_3\" #> [33] \"blue_4\" \"blue_5\" \"blue_6\" \"blue_7\""},{"path":[]},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"example-1-bar-chart-already-reach-themed","dir":"","previous_headings":"Charts","what":"Example 1: Bar chart, already REACH themed","title":"What a color! What a viz!","text":"","code":"library(visualizeR) library(palmerpenguins) library(dplyr) df <- penguins |> group_by(island, species) |> summarize( mean_bl = mean(bill_length_mm, na.rm = T), mean_fl = mean(flipper_length_mm, na.rm = T)) |> ungroup() # Simple bar chart by group bar_reach(df, mean_bl, island, species, percent = FALSE, x_title = \"Mean of bill length\") # Using another color palette bar_reach(df, mean_bl, island, species, percent = FALSE, palette = \"artichoke_3\", legend_rev = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"example-2-point-chart-already-reach-themed","dir":"","previous_headings":"Charts","what":"Example 2: Point chart, already REACH themed","title":"What a color! What a viz!","text":"stage, point_reach() supports categorical grouping colors group arg.","code":"# Simple point chart point_reach(penguins, bill_length_mm, flipper_length_mm) # Point chart with grouping colors, greater dot size, some transparency, reversed color palette point_reach(penguins, bill_length_mm, flipper_length_mm, island, alpha = 0.6, size = 3, reverse = TRUE) # Using another color palettes point_reach(penguins, bill_length_mm, flipper_length_mm, island, palette = \"artichoke_3\")"},{"path":"https://gnoblet.github.io/visualizeR/index.html","id":"maps","dir":"","previous_headings":"","what":"Maps","title":"What a color! What a viz!","text":"exported tmap::tmap_save().","code":"# Add indicator layer # - based on \"pretty\" classes and title \"Proportion (%)\" # - buffer to add a 10% around the bounding box map <- add_indicator_layer( indicator_admin1, opn_dfc, buffer = 0.1) + # Layout - some defaults - add the map title add_layout(\"% of HH that reported open defecation as sanitation facility\") + # Admin boundaries as list of shape files (lines) and colors, line widths and labels as vectors add_admin_boundaries( lines = list(line_admin1, border_admin0, frontier_admin0), colors = cols_reach(\"main_lt_grey\", \"dk_grey\", \"black\"), lwds = c(0.5, 2, 3), labels = c(\"Department\", \"Country\", \"Dominican Rep. frontier\"), title = \"Administrative boundaries\") + # Add text labels - centered on admin 1 centroids add_admin_labels(centroid_admin1, ADM1_FR_UPPER) + # Add a compass add_compass() + # Add a scale bar add_scale_bar() + # Add credits add_credits(\"Admin. boundaries. : CNIGS \\nCoord. system: GCS WGS 1984\")"},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://gnoblet.github.io/visualizeR/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":null,"dir":"Reference","previous_headings":"","what":"Abord bad argument — abort_bad_argument","title":"Abord bad argument — abort_bad_argument","text":"Abord bad argument","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Abord bad argument — abort_bad_argument","text":"","code":"abort_bad_argument(arg, must, not = NULL)"},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Abord bad argument — abort_bad_argument","text":"arg argument must arg must Optional. arg must .","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Abord bad argument — abort_bad_argument","text":"stop statement","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_boundaries.html","id":null,"dir":"Reference","previous_headings":"","what":"Add admin boundaries (lines) and the legend — add_admin_boundaries","title":"Add admin boundaries (lines) and the legend — add_admin_boundaries","text":"Add admin boundaries (lines) legend","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_boundaries.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Add admin boundaries (lines) and the legend — add_admin_boundaries","text":"","code":"add_admin_boundaries( lines, colors, labels, lwds, title = \"\", buffer = NULL, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_boundaries.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Add admin boundaries (lines) and the legend — add_admin_boundaries","text":"lines List multiline shape defined sf package. colors Vector hexadecimal codes. order lines. labels Vector labels legend. order lines. lwds Vector line widths. order lines. title Legend title. buffer buffer, either one value vector 4 values (left, bottom, right, top). ... arguments pass shape `tmap::tm_lines()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_boundaries.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Add admin boundaries (lines) and the legend — add_admin_boundaries","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_labels.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels. — add_admin_labels","title":"Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels. — add_admin_labels","text":"Wrapper around `tmap::tm_text()` sane defaults plotting admin labels.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_labels.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels. — add_admin_labels","text":"","code":"add_admin_labels( point, text, size = 0.5, fontface = \"bold\", fontfamily = \"Leelawadee\", shadow = TRUE, auto_placement = FALSE, remove_overlap = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_labels.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels. — add_admin_labels","text":"point Multipoint shape defined sf package. text Text labels column. size Relative size text labels. fontface Fontface. fontfamily Fontfamily. Leelawadee precious. shadow Boolean. Add shadow around text labels. Issue opened Github request. auto_placement Logical determines whether labels placed automatically. remove_overlap Logical determines whether overlapping labels removed. ... arguments pass `tmap::tm_text()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_admin_labels.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels. — add_admin_labels","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_compass.html","id":null,"dir":"Reference","previous_headings":"","what":"Add a compass — add_compass","title":"Add a compass — add_compass","text":"Add compass","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_compass.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Add a compass — add_compass","text":"","code":"add_compass( text_size = 0.6, position = c(\"right\", 0.8), color_dark = cols_reach(\"black\"), text_color = cols_reach(\"black\"), type = \"4star\", ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_compass.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Add a compass — add_compass","text":"text_size Relative font size. position Position compass. Vector two values, specifying x y coordinates. color_dark Color dark parts compass. text_color color text. type Compass type, one : \"arrow\", \"4star\", \"8star\", \"radar\", \"rose\". ... arguments pass `tmap::tm_compass()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_compass.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Add a compass — add_compass","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_credits.html","id":null,"dir":"Reference","previous_headings":"","what":"Do you want to credit someone or some institution? — add_credits","title":"Do you want to credit someone or some institution? — add_credits","text":"want credit someone institution?","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_credits.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Do you want to credit someone or some institution? — add_credits","text":"","code":"add_credits(text, size = 0.4, bg_color = NA, position = c(0.75, 0.02), ...)"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_credits.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Do you want to credit someone or some institution? — add_credits","text":"text Text. size Relative text size. bg_color Background color. position Position. Vector two coordinates. Usually somewhere . ... arguments pass `tmap::tm_credits()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_credits.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Do you want to credit someone or some institution? — add_credits","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_indicator_layer.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values — add_indicator_layer","title":"Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values — add_indicator_layer","text":"Wrapper around `tmap::tm_polygons()` sane defaults plotting indicator values","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_indicator_layer.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values — add_indicator_layer","text":"","code":"add_indicator_layer( poly, col, buffer = NULL, n = 5, style = \"pretty\", palette = pal_reach(\"red_5\"), as_count = TRUE, color_na = cols_reach(\"white\"), text_na = \"Missing data\", legend_title = \"Proportion (%)\", legend_text_separator = \" - \", border_alpha = 1, border_col = cols_reach(\"lt_grey_1\"), lwd = 1, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_indicator_layer.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values — add_indicator_layer","text":"poly Multipolygon shape defined sf package. col Numeric attribute map. buffer buffer, either one value vector 4 values (left, bottom, right, top). n desire number classes. style Method process color scale continuous numerical variables. See `classInt::classIntervals()` details. palette Vector fill colors hexadecimal values. REACH color palettes, possible use `pal_reach()`. now,'palette' must changed manually, accordingly number drawn classes. as_count Boolean. col numeric variable, processed count variable? instance, 0, 1-10, 11-20. color_na Fill color missing data. text_na Legend text missing data. legend_title Legend title. legend_text_separator Text separator classes. E.g. \" \" give 0, 1 10, 11 20. border_alpha Transparency border. border_col Color border. lwd Linewidth border. ... arguments pass `tmap::tm_polygons()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_indicator_layer.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values — add_indicator_layer","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_layout.html","id":null,"dir":"Reference","previous_headings":"","what":"Basic defaults based on `tmap::tm_layout()` — add_layout","title":"Basic defaults based on `tmap::tm_layout()` — add_layout","text":"Basic defaults based `tmap::tm_layout()`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_layout.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Basic defaults based on `tmap::tm_layout()` — add_layout","text":"","code":"add_layout( title = NULL, legend_position = c(0.02, 0.5), frame = FALSE, legend_frame = cols_reach(\"main_grey\"), legend_text_size = 0.6, legend_title_size = 0.8, title_size = 0.9, title_fontface = \"bold\", title_color = cols_reach(\"main_grey\"), fontfamily = \"Leelawadee\", ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_layout.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Basic defaults based on `tmap::tm_layout()` — add_layout","text":"title Map title. legend_position Legend position. map good start. frame Boolean. Legend frame? legend_frame Legend frame color. legend_text_size Legend text size 'pt'. legend_title_size Legend title size 'pt'. title_size Title text size 'pt'. title_fontface Title fontface. Bold wanna exemplify lot . title_color Title font color. fontfamily Overall fontfamily. Leelawadee precious. ... arguments pass `tmap::tm_layout()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_layout.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Basic defaults based on `tmap::tm_layout()` — add_layout","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_scale_bar.html","id":null,"dir":"Reference","previous_headings":"","what":"Add a scale bar — add_scale_bar","title":"Add a scale bar — add_scale_bar","text":"Add scale bar","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_scale_bar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Add a scale bar — add_scale_bar","text":"","code":"add_scale_bar( text_size = 0.6, position = c(\"left\", 0.01), color_dark = cols_reach(\"black\"), breaks = c(0, 50, 100), ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/add_scale_bar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Add a scale bar — add_scale_bar","text":"text_size Relative font size. position Position compass. Vector two values, specifying x y coordinates. color_dark Color dark parts compass. breaks Breaks scale bar. specified, breaks automatically chosen given prefered width scale bar. Example: c(0, 50, 100). ... arguments pass `tmap::tm_compass()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/add_scale_bar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Add a scale bar — add_scale_bar","text":"tmap layer.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Simple bar chart — bar_reach","title":"Simple bar chart — bar_reach","text":"`ggblanket` internals deciding whether bar chart horizontally readable.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Simple bar chart — bar_reach","text":"","code":"bar_reach( df, x, y, group = NULL, percent = TRUE, palette = \"main\", reverse = FALSE, family = \"Leelawadee\", alpha = 1, width = 0.5, x_title = NULL, y_title = NULL, group_title = NULL, position = \"dodge\", title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = \"right\", legend_rev = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Simple bar chart — bar_reach","text":"df data frame. x numeric column. y character column coercible character column. group grouping categorical column, e.g. administrative areas population groups. percent TRUE FALSE. x-labels displayed percentages? Default TRUE. palette Palette name 'pal_reach()'. reverse Boolean indicating whether palette reversed. family font family plot's texts. Default \"Leelawadee\". alpha Transparency. width Width. x_title x scale title. Default NULL. y_title y scale title. Default NULL. group_title group legend title. Default NULL. position chart stacked? Default \"dodge\". Can take \"dodge\" \"stack\". title Plot title. Default NULL. subtitle Plot subtitle. Default NULL. caption Caption title string. Default NULL. text_size size text title, subtitle caption. Defaults 10. title_size size title text. Defaults 14. legend_position Position legend; Default \"right\". Can take \"right\", \"left\", \"top\", \"bottom\" \"none\". legend_rev Reverse color guide? Default TRUE. ... arguments passed \"ggblanket::gg_col\"","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/bar_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Simple bar chart — bar_reach","text":"bar chart","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/border_admin0.html","id":null,"dir":"Reference","previous_headings":"","what":"Haïti border. — border_admin0","title":"Haïti border. — border_admin0","text":"multiline shapefile Haiti's border.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/border_admin0.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Haïti border. — border_admin0","text":"","code":"border_admin0"},{"path":"https://gnoblet.github.io/visualizeR/reference/border_admin0.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Haïti border. — border_admin0","text":"sf multiline objet 1 feature 6 fields: fid_1 fid_1 uno uno count count x_coord x_coord y_coord y_coord area area geometry Multiline geometry.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":null,"dir":"Reference","previous_headings":"","what":"Bbbox buffer — buffer_bbox","title":"Bbbox buffer — buffer_bbox","text":"Bbbox buffer","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bbbox buffer — buffer_bbox","text":"","code":"buffer_bbox(sf_obj, buffer = 0)"},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bbbox buffer — buffer_bbox","text":"sf_obj `sf` object buffer buffer, either one value vector 4 values (left, bottom, right, top). Default 0.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bbbox buffer — buffer_bbox","text":"bbox buffer","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/centroid_admin1.html","id":null,"dir":"Reference","previous_headings":"","what":"Haïti admin 1 centroids shapefile. — centroid_admin1","title":"Haïti admin 1 centroids shapefile. — centroid_admin1","text":"multipoint shapefile Haiti's admin 1.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/centroid_admin1.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Haïti admin 1 centroids shapefile. — centroid_admin1","text":"","code":"centroid_admin1"},{"path":"https://gnoblet.github.io/visualizeR/reference/centroid_admin1.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Haïti admin 1 centroids shapefile. — centroid_admin1","text":"sf multipoint object 10 features 9 fields: ADM1_PC Admin 1 postal code. ADM1_EN Full name English. ADM1_FR Full name French. ADM1_HT Full name Haitian Creole. ADM0_EN Country name English. ADM0_FR Country name French. ADM0_HT Country name Haitian Creole. ADM0_PC Country postal code. ADM1_FR_UPPER Admin 1 French name - uppercase. geometry Multipoint geometry.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":null,"dir":"Reference","previous_headings":"","what":"Function to extract AGORA colors as hex codes — cols_agora","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"Function extract AGORA colors hex codes","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"","code":"cols_agora(..., unnamed = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"... Character names reach colors. NULL returns colors unnamed output vector unnamed? Default `TRUE`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"hex code hex codes named unnamed","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_agora.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Function to extract AGORA colors as hex codes — cols_agora","text":"function needs modified add colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":null,"dir":"Reference","previous_headings":"","what":"Function to extract IMPACT colors as hex codes — cols_impact","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"Function extract IMPACT colors hex codes","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"","code":"cols_impact(..., unnamed = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"... Character names reach colors. NULL returns colors unnamed output vector unnamed? Default `TRUE`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"hex code hex codes named unnamed","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_impact.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Function to extract IMPACT colors as hex codes — cols_impact","text":"function needs modified add colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Function to extract REACH colors as hex codes — cols_reach","title":"Function to extract REACH colors as hex codes — cols_reach","text":"Function extract REACH colors hex codes","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function to extract REACH colors as hex codes — cols_reach","text":"","code":"cols_reach(..., unnamed = TRUE)"},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function to extract REACH colors as hex codes — cols_reach","text":"... Character names reach colors. NULL returns colors unnamed output vector unnamed? Default `TRUE`","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function to extract REACH colors as hex codes — cols_reach","text":"hex code hex codes named unnamed","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/cols_reach.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Function to extract REACH colors as hex codes — cols_reach","text":"function needs modified add colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/frontier_admin0.html","id":null,"dir":"Reference","previous_headings":"","what":"Haïti frontier with Dominican Republic. — frontier_admin0","title":"Haïti frontier with Dominican Republic. — frontier_admin0","text":"multiline shapefile Haiti's frontier Dominican Republic.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/frontier_admin0.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Haïti frontier with Dominican Republic. — frontier_admin0","text":"","code":"frontier_admin0"},{"path":"https://gnoblet.github.io/visualizeR/reference/frontier_admin0.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Haïti frontier with Dominican Republic. — frontier_admin0","text":"sf multipoint objet 4 features 8 fields: fid_1 fid_1 objectid objectid id id fromnode fromnode tonode tonode leftpolygo leftpolygo rightpolygo rightpolygo shape_leng shape_leng geometry Multiline geometry.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":null,"dir":"Reference","previous_headings":"","what":"Stop statement ","title":"Stop statement ","text":"Stop statement \"colnames\" colnames","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Stop statement ","text":"","code":"if_not_in_stop(.tbl, cols, df, arg = NULL)"},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Stop statement ","text":".tbl tibble cols vector column names (quoted) df Provide tibble name character string arg Default NULL.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Stop statement ","text":"stop statement","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":null,"dir":"Reference","previous_headings":"","what":"Stop statement ","title":"Stop statement ","text":"Stop statement \"vector\"","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Stop statement ","text":"","code":"if_vec_not_in_stop(vec, cols, vec_name, arg = NULL)"},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Stop statement ","text":"vec vector character strings cols set character strings vec_name Provide vector name character string arg Default NULL.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/if_vec_not_in_stop.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Stop statement ","text":"stop statement elements vec cols","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/indicator_admin1.html","id":null,"dir":"Reference","previous_headings":"","what":"Indicator admin 1 polygons shapefile. — indicator_admin1","title":"Indicator admin 1 polygons shapefile. — indicator_admin1","text":"multipolygon shapefile Haiti's admin 1 indicator column 'opn_dfc'.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/indicator_admin1.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Indicator admin 1 polygons shapefile. — indicator_admin1","text":"","code":"indicator_admin1"},{"path":"https://gnoblet.github.io/visualizeR/reference/indicator_admin1.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Indicator admin 1 polygons shapefile. — indicator_admin1","text":"sf multipoint object 10 features 10 fields: ADM1_PC Admin 1 postal code. admin1 Admin 1 unique id. opn_dfc Proportion HHs reported open defecation sanitation facility. ADM1_EN Full name English. ADM1_FR Full name French. ADM1_HT Full name Haitian Creole. ADM0_EN Country name English. ADM0_FR Country name French. ADM0_HT Country name Haitian Creole. ADM0_PC Country postal code. geometry Multipolygon geometry.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/line_admin1.html","id":null,"dir":"Reference","previous_headings":"","what":"Haïti admin 1 lines shapefile. — line_admin1","title":"Haïti admin 1 lines shapefile. — line_admin1","text":"multiline shapefile Haiti's admin 1.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/line_admin1.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Haïti admin 1 lines shapefile. — line_admin1","text":"","code":"line_admin1"},{"path":"https://gnoblet.github.io/visualizeR/reference/line_admin1.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Haïti admin 1 lines shapefile. — line_admin1","text":"sf multiline object 10 features 8 fields: ADM1_EN Full name English. ADM1_FR Full name French. ADM1_HT Full name Haitian Creole. ADM0_EN Country name English. ADM0_FR Country name French. ADM0_HT Country name Haitian Creole. ADM0_PCODE Country postal code. geometry Multiline geometry.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":null,"dir":"Reference","previous_headings":"","what":"Return function to interpolate an AGORA color palette — pal_agora","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"Return function interpolate AGORA color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"","code":"pal_agora( palette = \"main\", reverse = FALSE, color_ramp_palette = FALSE, show_palettes = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"palette Character name palette AGORA palettes reverse Boolean indicating whether palette reversed color_ramp_palette output `grDevices::colorRampPalette` function vector hex codes? Default former `TRUE` show_palettes ouput set palettes names pick ? Default `FALSE` ... Additional arguments pass colorRampPalette()","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_agora.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return function to interpolate an AGORA color palette — pal_agora","text":"color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":null,"dir":"Reference","previous_headings":"","what":"Return function to interpolate an IMPACT color palette — pal_impact","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"Return function interpolate IMPACT color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"","code":"pal_impact( palette = \"main\", reverse = FALSE, color_ramp_palette = FALSE, show_palettes = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"palette Character name palette IMPACT palettes reverse Boolean indicating whether palette reversed color_ramp_palette output `grDevices::colorRampPalette` function vector hex codes? Default former `TRUE` show_palettes ouput set palettes names pick ? Default `FALSE` ... Additional arguments pass colorRampPalette()","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_impact.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return function to interpolate an IMPACT color palette — pal_impact","text":"color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Return function to interpolate a REACH color palette — pal_reach","title":"Return function to interpolate a REACH color palette — pal_reach","text":"Return function interpolate REACH color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Return function to interpolate a REACH color palette — pal_reach","text":"","code":"pal_reach( palette = \"main\", reverse = FALSE, color_ramp_palette = FALSE, show_palettes = FALSE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Return function to interpolate a REACH color palette — pal_reach","text":"palette Character name palette REACH palettes reverse Boolean indicating whether palette reversed color_ramp_palette output `grDevices::colorRampPalette` function vector hex codes? Default former `TRUE` show_palettes ouput set palettes names pick ? Default `FALSE` ... Additional arguments pass colorRampPalette()","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/pal_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Return function to interpolate a REACH color palette — pal_reach","text":"color palette","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"Simple point chart — point_reach","title":"Simple point chart — point_reach","text":"`ggblanket` internals deciding whether bar chart horizontally readable.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Simple point chart — point_reach","text":"","code":"point_reach( df, x, y, group = NULL, palette = \"main\", reverse = FALSE, family = \"Leelawadee\", alpha = 1, size = 1.5, x_title = NULL, y_title = NULL, group_title = NULL, title = NULL, subtitle = NULL, caption = NULL, text_size = 10, title_size = 14, legend_position = \"right\", ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Simple point chart — point_reach","text":"df data frame. x numeric column. y character column coercible character column. group grouping categorical column, e.g. administrative areas population groups. palette Palette name 'pal_reach()'. reverse Boolean indicating whether palette reversed. family font family plot's texts. Default \"Leelawadee\". alpha Transparency. size Dot size. Default 1.5. x_title x scale title. Default NULL. y_title y scale title. Default NULL. group_title group legend title. Default NULL. title Plot title. Default NULL. subtitle Plot subtitle. Default NULL. caption Caption title string. Default NULL. text_size size text title, subtitle caption. Defaults 10. title_size size title text. Defaults 14. legend_position Position legend; Default \"right\". Can take \"right\", \"left\", \"top\", \"bottom\" \"none\". ... arguments passed \"ggblanket::gg_col\"","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/point_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Simple point chart — point_reach","text":"bar chart","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":null,"dir":"Reference","previous_headings":"","what":"Color scale constructor for REACH or AGORA colors — scale_color","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"Color scale constructor REACH AGORA colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"","code":"scale_color( initiative = \"reach\", palette = \"main\", discrete = TRUE, reverse = FALSE, reverse_guide = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"initiative Either \"reach\" \"agora. palette Palette name `pal_reach()` `pal_agora()`. discrete Boolean indicating whether color aesthetic discrete . reverse Boolean indicating whether palette reversed. reverse_guide Boolean indicating whether guide reversed. ... Additional arguments passed discrete_scale() scale_fill_gradient(), used respectively discrete TRUE FALSE.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_color.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color scale constructor for REACH or AGORA colors — scale_color","text":"color scale ggplot","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":null,"dir":"Reference","previous_headings":"","what":"Fill scale constructor for REACH or AGORA colors — scale_fill","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"Fill scale constructor REACH AGORA colors","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"","code":"scale_fill( initiative = \"reach\", palette = \"main\", discrete = TRUE, reverse = FALSE, reverse_guide = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"initiative Either \"reach\" \"agora. palette Palette name `pal_reach()` `pal_agora()`. discrete Boolean indicating whether color aesthetic discrete . reverse Boolean indicating whether palette reversed. reverse_guide Boolean indicating whether guide reversed. ... Additional arguments passed discrete_scale() scale_fill_gradient(), used respectively discrete TRUE FALSE.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/scale_fill.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fill scale constructor for REACH or AGORA colors — scale_fill","text":"fill scale ggplot.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":null,"dir":"Reference","previous_headings":"","what":"Subvec not in — subvec_not_in","title":"Subvec not in — subvec_not_in","text":"Subvec ","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Subvec not in — subvec_not_in","text":"","code":"subvec_not_in(vector, set)"},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Subvec not in — subvec_not_in","text":"vector vector subset set set-vector","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/subvec_not_in.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Subvec not in — subvec_not_in","text":"subset vector set","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":null,"dir":"Reference","previous_headings":"","what":"ggplot2 theme with REACH color palettes — theme_reach","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"Give reach colors fonts ggplot.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"","code":"theme_reach( palette = \"main\", discrete = TRUE, reverse = FALSE, family = \"Leelawadee\", text_size = 10, title_size = 14, plot_background_pal = \"#FFFFFF\", panel_background_pal = \"#FFFFFF\", legend_position = \"right\", legend_direction = \"vertical\", legend_reverse = TRUE, ... )"},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"palette Palette name 'pal_reach()'. discrete Boolean indicating whether color aesthetic discrete . reverse Boolean indicating whether palette reversed. family font family plot's texts. Default \"Leelawadee\". text_size size text title, subtitle caption. Defaults 10. title_size size title text_family. Defaults 14. plot_background_pal color plot background color. Default white. panel_background_pal color panel background color. Default white. legend_position Position legend; Default \"right\". Can take \"right\", \"left\", \"top\", \"bottom\" \"none\". legend_direction Direction legend. Default \"vertical\". Can take \"vertical\" \"horizontal\". legend_reverse Reverse color guide? Default TRUE. ... Additional arguments passed `ggblanket::gg_theme()`.","code":""},{"path":"https://gnoblet.github.io/visualizeR/reference/theme_reach.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ggplot2 theme with REACH color palettes — theme_reach","text":"base REACH theme","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-039000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.3.9000","title":"visualizeR 0.3.9000","text":"Breaking changes: update ggblanket v1.6.1. Add plotting functions indicator maps.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-029000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.2.9000","title":"visualizeR 0.2.9000","text":"Breaking changes: almost functions got refinements, new functions, typically hbar() becomes bar_reach() point_reach() added. Following theme_reach() now used plotting functions. Add README.md.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0179000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.7.9000","title":"visualizeR 0.1.7.9000","text":"Fixed color palettes.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0169000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.6.9000","title":"visualizeR 0.1.6.9000","text":"IMPACT colors palettes added: function cols_impact() pal_impact(). Color palettes REACH added (2 7 continuous palettes) ; see updated cols_reach() pal_reach().","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0159000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.5.9000","title":"visualizeR 0.1.5.9000","text":"Move simplevis successor ggblanket.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0149000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.4.9000","title":"visualizeR 0.1.4.9000","text":"hbar() gains new boolean argument reverse pass pal_reach() pal_agora(), indicating color palette reversed .","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0139000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.3.9000","title":"visualizeR 0.1.3.9000","text":"Small change hbar(): removes error arg within simplevis::gg_hbar() call.","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0129000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.2.9000","title":"visualizeR 0.1.2.9000","text":"duplicate scale_color() function, now scale_fill()","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-0119000","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.1.9000","title":"visualizeR 0.1.1.9000","text":"Added two horizontal bar functions: hbar(), hbar_percent() (#3) Added internals check missing columns bad arguments (#3) Modified theme_reach() documentation Add buffer_bbox() function produce buffered bbox, e.g. use tmap","code":""},{"path":"https://gnoblet.github.io/visualizeR/news/index.html","id":"visualizer-010","dir":"Changelog","previous_headings":"","what":"visualizeR 0.1.0","title":"visualizeR 0.1.0","text":"Added NEWS.md file track changes package Initiate repo","code":""}]
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index c0b12e3..c30bba8 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -3,27 +3,54 @@
https://gnoblet.github.io/visualizeR/404.html
-
- https://gnoblet.github.io/visualizeR/LICENSE.html
-
https://gnoblet.github.io/visualizeR/authors.html
https://gnoblet.github.io/visualizeR/index.html
+
+ https://gnoblet.github.io/visualizeR/LICENSE.html
+
https://gnoblet.github.io/visualizeR/news/index.html
https://gnoblet.github.io/visualizeR/reference/abort_bad_argument.html
+
+ https://gnoblet.github.io/visualizeR/reference/add_admin_boundaries.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/add_admin_labels.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/add_compass.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/add_credits.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/add_indicator_layer.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/add_layout.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/add_scale_bar.html
+
https://gnoblet.github.io/visualizeR/reference/bar_reach.html
+
+ https://gnoblet.github.io/visualizeR/reference/border_admin0.html
+
https://gnoblet.github.io/visualizeR/reference/buffer_bbox.html
+
+ https://gnoblet.github.io/visualizeR/reference/centroid_admin1.html
+
https://gnoblet.github.io/visualizeR/reference/cols_agora.html
@@ -33,6 +60,9 @@
https://gnoblet.github.io/visualizeR/reference/cols_reach.html
+
+ https://gnoblet.github.io/visualizeR/reference/frontier_admin0.html
+
https://gnoblet.github.io/visualizeR/reference/if_not_in_stop.html
@@ -42,6 +72,12 @@
https://gnoblet.github.io/visualizeR/reference/index.html
+
+ https://gnoblet.github.io/visualizeR/reference/indicator_admin1.html
+
+
+ https://gnoblet.github.io/visualizeR/reference/line_admin1.html
+
https://gnoblet.github.io/visualizeR/reference/pal_agora.html
diff --git a/man/add_admin_boundaries.Rd b/man/add_admin_boundaries.Rd
new file mode 100644
index 0000000..7d6e3b4
--- /dev/null
+++ b/man/add_admin_boundaries.Rd
@@ -0,0 +1,37 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_admin_boundaries}
+\alias{add_admin_boundaries}
+\title{Add admin boundaries (lines) and the legend}
+\usage{
+add_admin_boundaries(
+ lines,
+ colors,
+ labels,
+ lwds,
+ title = "",
+ buffer = NULL,
+ ...
+)
+}
+\arguments{
+\item{lines}{List of multiline shape defined by sf package.}
+
+\item{colors}{Vector of hexadecimal codes. Same order as lines.}
+
+\item{labels}{Vector of labels in the legend. Same order as lines.}
+
+\item{lwds}{Vector of line widths. Same order as lines.}
+
+\item{title}{Legend title.}
+
+\item{buffer}{A buffer, either one value or a vector of 4 values (left, bottom, right, top).}
+
+\item{...}{Other arguments to pass to each shape in `tmap::tm_lines()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Add admin boundaries (lines) and the legend
+}
diff --git a/man/add_admin_labels.Rd b/man/add_admin_labels.Rd
new file mode 100644
index 0000000..d9691b6
--- /dev/null
+++ b/man/add_admin_labels.Rd
@@ -0,0 +1,43 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_admin_labels}
+\alias{add_admin_labels}
+\title{Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels.}
+\usage{
+add_admin_labels(
+ point,
+ text,
+ size = 0.5,
+ fontface = "bold",
+ fontfamily = "Leelawadee",
+ shadow = TRUE,
+ auto_placement = FALSE,
+ remove_overlap = FALSE,
+ ...
+)
+}
+\arguments{
+\item{point}{Multipoint shape defined by sf package.}
+
+\item{text}{Text labels column.}
+
+\item{size}{Relative size of the text labels.}
+
+\item{fontface}{Fontface.}
+
+\item{fontfamily}{Fontfamily. Leelawadee is your precious.}
+
+\item{shadow}{Boolean. Add a shadow around text labels. Issue opened on Github to request.}
+
+\item{auto_placement}{Logical that determines whether the labels are placed automatically.}
+
+\item{remove_overlap}{Logical that determines whether the overlapping labels are removed.}
+
+\item{...}{Other arguments to pass to `tmap::tm_text()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Wrapper around `tmap::tm_text()` with sane defaults for plotting admin labels.
+}
diff --git a/man/add_compass.Rd b/man/add_compass.Rd
new file mode 100644
index 0000000..a22f932
--- /dev/null
+++ b/man/add_compass.Rd
@@ -0,0 +1,34 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_compass}
+\alias{add_compass}
+\title{Add a compass}
+\usage{
+add_compass(
+ text_size = 0.6,
+ position = c("right", 0.8),
+ color_dark = cols_reach("black"),
+ text_color = cols_reach("black"),
+ type = "4star",
+ ...
+)
+}
+\arguments{
+\item{text_size}{Relative font size.}
+
+\item{position}{Position of the compass. Vector of two values, specifying the x and y coordinates.}
+
+\item{color_dark}{Color of the dark parts of the compass.}
+
+\item{text_color}{color of the text.}
+
+\item{type}{Compass type, one of: "arrow", "4star", "8star", "radar", "rose".}
+
+\item{...}{Other arguments to pass to `tmap::tm_compass()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Add a compass
+}
diff --git a/man/add_credits.Rd b/man/add_credits.Rd
new file mode 100644
index 0000000..9410747
--- /dev/null
+++ b/man/add_credits.Rd
@@ -0,0 +1,25 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_credits}
+\alias{add_credits}
+\title{Do you want to credit someone or some institution?}
+\usage{
+add_credits(text, size = 0.4, bg_color = NA, position = c(0.75, 0.02), ...)
+}
+\arguments{
+\item{text}{Text.}
+
+\item{size}{Relative text size.}
+
+\item{bg_color}{Background color.}
+
+\item{position}{Position. Vector of two coordinates. Usually somewhere down.}
+
+\item{...}{Other arguments to pass to `tmap::tm_credits()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Do you want to credit someone or some institution?
+}
diff --git a/man/add_indicator_layer.Rd b/man/add_indicator_layer.Rd
new file mode 100644
index 0000000..cf54ac2
--- /dev/null
+++ b/man/add_indicator_layer.Rd
@@ -0,0 +1,61 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_indicator_layer}
+\alias{add_indicator_layer}
+\title{Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values}
+\usage{
+add_indicator_layer(
+ poly,
+ col,
+ buffer = NULL,
+ n = 5,
+ style = "pretty",
+ palette = pal_reach("red_5"),
+ as_count = TRUE,
+ color_na = cols_reach("white"),
+ text_na = "Missing data",
+ legend_title = "Proportion (\%)",
+ legend_text_separator = " - ",
+ border_alpha = 1,
+ border_col = cols_reach("lt_grey_1"),
+ lwd = 1,
+ ...
+)
+}
+\arguments{
+\item{poly}{Multipolygon shape defined by sf package.}
+
+\item{col}{Numeric attribute to map.}
+
+\item{buffer}{A buffer, either one value or a vector of 4 values (left, bottom, right, top).}
+
+\item{n}{The desire number of classes.}
+
+\item{style}{Method to process the color scale for continuous numerical variables. See `classInt::classIntervals()` for details.}
+
+\item{palette}{Vector of fill colors as hexadecimal values. For REACH color palettes, it is possible to use `pal_reach()`. For now,'palette' must be changed manually, accordingly to the number of drawn classes.}
+
+\item{as_count}{Boolean. When col is a numeric variable, should it be processed as a count variable? For instance, 0, 1-10, 11-20.}
+
+\item{color_na}{Fill color for missing data.}
+
+\item{text_na}{Legend text for missing data.}
+
+\item{legend_title}{Legend title.}
+
+\item{legend_text_separator}{Text separator for classes. E.g. " to " will give 0, 1 to 10, 11 to 20.}
+
+\item{border_alpha}{Transparency of the border.}
+
+\item{border_col}{Color of the border.}
+
+\item{lwd}{Linewidth of the border.}
+
+\item{...}{Other arguments to pass to `tmap::tm_polygons()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Wrapper around `tmap::tm_polygons()` with sane defaults for plotting indicator values
+}
diff --git a/man/add_layout.Rd b/man/add_layout.Rd
new file mode 100644
index 0000000..f5c4b53
--- /dev/null
+++ b/man/add_layout.Rd
@@ -0,0 +1,49 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_layout}
+\alias{add_layout}
+\title{Basic defaults based on `tmap::tm_layout()`}
+\usage{
+add_layout(
+ title = NULL,
+ legend_position = c(0.02, 0.5),
+ frame = FALSE,
+ legend_frame = cols_reach("main_grey"),
+ legend_text_size = 0.6,
+ legend_title_size = 0.8,
+ title_size = 0.9,
+ title_fontface = "bold",
+ title_color = cols_reach("main_grey"),
+ fontfamily = "Leelawadee",
+ ...
+)
+}
+\arguments{
+\item{title}{Map title.}
+
+\item{legend_position}{Legend position. Not above the map is a good start.}
+
+\item{frame}{Boolean. Legend frame?}
+
+\item{legend_frame}{Legend frame color.}
+
+\item{legend_text_size}{Legend text size in 'pt'.}
+
+\item{legend_title_size}{Legend title size in 'pt'.}
+
+\item{title_size}{Title text size in 'pt'.}
+
+\item{title_fontface}{Title fontface. Bold if you wanna exemplify a lot what it is about.}
+
+\item{title_color}{Title font color.}
+
+\item{fontfamily}{Overall fontfamily. Leelawadee is your precious.}
+
+\item{...}{Other arguments to pass to `tmap::tm_layout()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Basic defaults based on `tmap::tm_layout()`
+}
diff --git a/man/add_scale_bar.Rd b/man/add_scale_bar.Rd
new file mode 100644
index 0000000..b204c3c
--- /dev/null
+++ b/man/add_scale_bar.Rd
@@ -0,0 +1,31 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/map.R
+\name{add_scale_bar}
+\alias{add_scale_bar}
+\title{Add a scale bar}
+\usage{
+add_scale_bar(
+ text_size = 0.6,
+ position = c("left", 0.01),
+ color_dark = cols_reach("black"),
+ breaks = c(0, 50, 100),
+ ...
+)
+}
+\arguments{
+\item{text_size}{Relative font size.}
+
+\item{position}{Position of the compass. Vector of two values, specifying the x and y coordinates.}
+
+\item{color_dark}{Color of the dark parts of the compass.}
+
+\item{breaks}{Breaks of the scale bar. If not specified, breaks will be automatically be chosen given the prefered width of the scale bar. Example: c(0, 50, 100).}
+
+\item{...}{Other arguments to pass to `tmap::tm_compass()`.}
+}
+\value{
+A tmap layer.
+}
+\description{
+Add a scale bar
+}
diff --git a/man/bar_reach.Rd b/man/bar_reach.Rd
index 884952c..e3091f6 100644
--- a/man/bar_reach.Rd
+++ b/man/bar_reach.Rd
@@ -26,7 +26,6 @@ bar_reach(
title_size = 14,
legend_position = "right",
legend_rev = TRUE,
- void = FALSE,
...
)
}
@@ -73,8 +72,6 @@ bar_reach(
\item{legend_rev}{Reverse the color in the guide? Default to TRUE.}
-\item{void}{Boolean to remove all elements from the plot. Default to FALSE.}
-
\item{...}{Other arguments to be passed to "ggblanket::gg_col"}
}
\value{
diff --git a/man/border_admin0.Rd b/man/border_admin0.Rd
new file mode 100644
index 0000000..cd495f3
--- /dev/null
+++ b/man/border_admin0.Rd
@@ -0,0 +1,25 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{border_admin0}
+\alias{border_admin0}
+\title{Haïti border.}
+\format{
+A sf multiline objet with 1 feature and 6 fields:
+\describe{
+ \item{fid_1}{fid_1}
+ \item{uno}{uno}
+ \item{count}{count}
+ \item{x_coord}{x_coord}
+ \item{y_coord}{y_coord}
+ \item{area}{area}
+ \item{geometry}{Multiline geometry.}
+}
+}
+\usage{
+border_admin0
+}
+\description{
+A multiline shapefile of Haiti's border.
+}
+\keyword{datasets}
diff --git a/man/centroid_admin1.Rd b/man/centroid_admin1.Rd
new file mode 100644
index 0000000..c221ac9
--- /dev/null
+++ b/man/centroid_admin1.Rd
@@ -0,0 +1,28 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{centroid_admin1}
+\alias{centroid_admin1}
+\title{Haïti admin 1 centroids shapefile.}
+\format{
+A sf multipoint object with 10 features and 9 fields:
+\describe{
+ \item{ADM1_PC}{Admin 1 postal code.}
+ \item{ADM1_EN}{Full name in English.}
+ \item{ADM1_FR}{Full name in French.}
+ \item{ADM1_HT}{Full name in Haitian Creole.}
+ \item{ADM0_EN}{Country name in English.}
+ \item{ADM0_FR}{Country name in French.}
+ \item{ADM0_HT}{Country name in Haitian Creole.}
+ \item{ADM0_PC}{Country postal code.}
+ \item{ADM1_FR_UPPER}{Admin 1 French name - uppercase.}
+ \item{geometry}{Multipoint geometry.}
+}
+}
+\usage{
+centroid_admin1
+}
+\description{
+A multipoint shapefile of Haiti's admin 1.
+}
+\keyword{datasets}
diff --git a/man/figures/README-example-bar-chart-1.png b/man/figures/README-example-bar-chart-1.png
index a14d122..d423d85 100644
Binary files a/man/figures/README-example-bar-chart-1.png and b/man/figures/README-example-bar-chart-1.png differ
diff --git a/man/figures/README-example-bar-chart-2.png b/man/figures/README-example-bar-chart-2.png
index 5d9cdbe..d6639d8 100644
Binary files a/man/figures/README-example-bar-chart-2.png and b/man/figures/README-example-bar-chart-2.png differ
diff --git a/man/figures/README-example-map.png b/man/figures/README-example-map.png
new file mode 100644
index 0000000..ce2727b
Binary files /dev/null and b/man/figures/README-example-map.png differ
diff --git a/man/figures/README-example-map.svg b/man/figures/README-example-map.svg
new file mode 100644
index 0000000..5e389c0
--- /dev/null
+++ b/man/figures/README-example-map.svg
@@ -0,0 +1,241 @@
+
+
diff --git a/man/figures/README-example-point-chart-1.png b/man/figures/README-example-point-chart-1.png
index 36e0d8a..ded89e0 100644
Binary files a/man/figures/README-example-point-chart-1.png and b/man/figures/README-example-point-chart-1.png differ
diff --git a/man/figures/README-example-point-chart-2.png b/man/figures/README-example-point-chart-2.png
index 255e4bd..7fe5e16 100644
Binary files a/man/figures/README-example-point-chart-2.png and b/man/figures/README-example-point-chart-2.png differ
diff --git a/man/figures/README-example-point-chart-3.png b/man/figures/README-example-point-chart-3.png
index 5f115a6..f102ee0 100644
Binary files a/man/figures/README-example-point-chart-3.png and b/man/figures/README-example-point-chart-3.png differ
diff --git a/man/frontier_admin0.Rd b/man/frontier_admin0.Rd
new file mode 100644
index 0000000..91501c1
--- /dev/null
+++ b/man/frontier_admin0.Rd
@@ -0,0 +1,27 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{frontier_admin0}
+\alias{frontier_admin0}
+\title{Haïti frontier with Dominican Republic.}
+\format{
+A sf multipoint objet with 4 features and 8 fields:
+\describe{
+ \item{fid_1}{fid_1}
+ \item{objectid}{objectid}
+ \item{id}{id}
+ \item{fromnode}{fromnode}
+ \item{tonode}{tonode}
+ \item{leftpolygo}{leftpolygo}
+ \item{rightpolygo}{rightpolygo}
+ \item{shape_leng}{shape_leng}
+ \item{geometry}{Multiline geometry.}
+}
+}
+\usage{
+frontier_admin0
+}
+\description{
+A multiline shapefile of Haiti's frontier with Dominican Republic.
+}
+\keyword{datasets}
diff --git a/man/indicator_admin1.Rd b/man/indicator_admin1.Rd
new file mode 100644
index 0000000..673ee1b
--- /dev/null
+++ b/man/indicator_admin1.Rd
@@ -0,0 +1,29 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{indicator_admin1}
+\alias{indicator_admin1}
+\title{Indicator admin 1 polygons shapefile.}
+\format{
+A sf multipoint object with 10 features and 10 fields:
+\describe{
+ \item{ADM1_PC}{Admin 1 postal code.}
+ \item{admin1}{Admin 1 unique id.}
+ \item{opn_dfc}{Proportion of HHs that reported open defecation as sanitation facility.}
+ \item{ADM1_EN}{Full name in English.}
+ \item{ADM1_FR}{Full name in French.}
+ \item{ADM1_HT}{Full name in Haitian Creole.}
+ \item{ADM0_EN}{Country name in English.}
+ \item{ADM0_FR}{Country name in French.}
+ \item{ADM0_HT}{Country name in Haitian Creole.}
+ \item{ADM0_PC}{Country postal code.}
+ \item{geometry}{Multipolygon geometry.}
+}
+}
+\usage{
+indicator_admin1
+}
+\description{
+A multipolygon shapefile of Haiti's admin 1 with an indicator column 'opn_dfc'.
+}
+\keyword{datasets}
diff --git a/man/line_admin1.Rd b/man/line_admin1.Rd
new file mode 100644
index 0000000..49f72e4
--- /dev/null
+++ b/man/line_admin1.Rd
@@ -0,0 +1,26 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/data.R
+\docType{data}
+\name{line_admin1}
+\alias{line_admin1}
+\title{Haïti admin 1 lines shapefile.}
+\format{
+A sf multiline object with 10 features and 8 fields:
+\describe{
+ \item{ADM1_EN}{Full name in English.}
+ \item{ADM1_FR}{Full name in French.}
+ \item{ADM1_HT}{Full name in Haitian Creole.}
+ \item{ADM0_EN}{Country name in English.}
+ \item{ADM0_FR}{Country name in French.}
+ \item{ADM0_HT}{Country name in Haitian Creole.}
+ \item{ADM0_PCODE}{Country postal code.}
+ \item{geometry}{Multiline geometry.}
+}
+}
+\usage{
+line_admin1
+}
+\description{
+A multiline shapefile of Haiti's admin 1.
+}
+\keyword{datasets}
diff --git a/man/point_reach.Rd b/man/point_reach.Rd
index 8dbd591..d069f4c 100644
--- a/man/point_reach.Rd
+++ b/man/point_reach.Rd
@@ -23,7 +23,6 @@ point_reach(
text_size = 10,
title_size = 14,
legend_position = "right",
- void = FALSE,
...
)
}
@@ -64,8 +63,6 @@ point_reach(
\item{legend_position}{Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".}
-\item{void}{Boolean to remove all elements from the plot. Default to FALSE.}
-
\item{...}{Other arguments to be passed to "ggblanket::gg_col"}
}
\value{
diff --git a/man/theme_reach.Rd b/man/theme_reach.Rd
index aa3c2af..3ad58ed 100644
--- a/man/theme_reach.Rd
+++ b/man/theme_reach.Rd
@@ -13,7 +13,6 @@ theme_reach(
title_size = 14,
plot_background_pal = "#FFFFFF",
panel_background_pal = "#FFFFFF",
- void = FALSE,
legend_position = "right",
legend_direction = "vertical",
legend_reverse = TRUE,
@@ -37,8 +36,6 @@ theme_reach(
\item{panel_background_pal}{The color for the panel background color. Default to white.}
-\item{void}{Boolean to remove all elements from the plot. Default to FALSE.}
-
\item{legend_position}{Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".}
\item{legend_direction}{Direction of the legend. Default to "vertical". Can take "vertical" or "horizontal".}