Description Usage Arguments Value See Also Examples
This function will create a choropleth map of the European Union and some
of its (perspective) member candidates, the EEA countries, and the United
Kingdom. The geographical information must conform the official geo
codes of Eurostat.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
dat |
Eurostat data frame or a data frame derived from
|
n |
Number of colour categories if discrete (categorical) colouring
is chosen, defaults to |
geo_var |
The name of the variable that contains the standard
|
values_var |
The name of the variable that contains the
|
type |
Defaults to |
show_all_missing |
Defaults to |
unit_text |
Defaults to |
color_palette |
A named character vector with colors. If you use this
with categorical variables, make sure that the color_palette has a value
for each categories except for missing values, and it is named to the
category name (factor level) as it is found in you |
na_color |
Defaults to |
drop_levels |
Weather to drop categorical levels on the choropleth
if they are not present in the data. Defaults to |
reverse_scale |
Defaults to |
style |
Style of interval reporting, defaults to |
print_style |
Style of printing the labels, defaults to
|
iceland |
Show Iceland on the choropleth? Defaults to
|
A ggplot object with a choropleth map.
The function returns a ggplot2
object. You can modify the
ggplot object, for example, with adding labs.
indicator_categories
1 2 3 4 5 6 | ## Not run:
chreate_choropleth ( your_nuts2_data, level=2, n=5, style="kmeans") +
labs (title = "Your Title", fill = "fill legend name",
subtitle = "Your Subtitle", caption ="Your caption or footnote.")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.