Learn R Programming

SDGdetector (version 2.7.3)

plot_sdg_map: SDG Map Plot

Description

SDG map plot

Usage

plot_sdg_map(data, sdg = sdg, value = value,
                    country = country, by_sdg = TRUE)

Value

Returns the tool text outputs.

Arguments

data

Data frame as the input

sdg

Vector with SDG code to be visualized.

value

The value, e.g., number of SDGs, to be show in the thematic map

country

Country that are associated with the SDGs.

by_sdg

If mapping by SDG, TRUE or FALSE.

Examples

Run this code
data("sdgstat")
plot_sdg_map(sdgstat,
  sdg = "SDG", value = "Value",
  country = "Country", by_sdg = FALSE
)

Run the code above in your browser using DataLab