Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggmap.feature

Create a map with ggplot2


Description

Map a set of languages and color them by feature.

Usage

ggmap.feature(
  languages,
  features = "",
  latitude = NA,
  longitude = NA,
  color = NULL,
  title = NULL,
  legend = TRUE,
  width = 2,
  opacity = 1,
  map.orientation = "Atlantic"
)

Arguments

languages

character vector of languages (can be written in lower case).

features

character vector of features.

latitude

numeric vector of latitudes.

longitude

numeric vector of longitudes.

color

vector of colors or palette. The color argument can be (1) a character vector of RGM or named colors; (2) the name of an RColorBrewer palette; (3) the full name of a viridis palette; (4) a function that receives a single value between 0 and 1 and returns a color. For more examples see colorNumeric.

title

title of a legend.

legend

logical. If TRUE, function show legend. By default is TRUE.

width

a numeric vector of radius for circles or width for barcharts in minicharts.

opacity

a numeric vector of marker opacity.

map.orientation

a character verctor with values "Pacific" and "Atlantic". It distinguishes Pacific-centered and Atlantic-centered maps. By default is "Atlantic".

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

ggmap.feature(c("Adyghe", "Russian"))

lingtypology

Linguistic Typology and Mapping

v1.1.4
GPL (>= 2)
Authors
George Moroz [aut, cre] (<https://orcid.org/0000-0003-1990-6083>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.