get_template_for_maps: Create a drop-down vignette for nodes from different items...

View source: R/wikiTools.R

get_template_for_mapsR Documentation

Create a drop-down vignette for nodes from different items (for maps).

Description

Create a drop-down vignette for nodes from different items (for maps).

Usage

get_template_for_maps(
  data,
  title = NULL,
  title2 = NULL,
  text = NULL,
  img = NULL,
  wiki = NULL,
  color = "#cbdefb",
  cex = 1
)

Arguments

data

data frame which contains the data.

title

column name which contains the first tittle of the vignette.

title2

column name which contains the secondary title of the vignette.

text

column name which contains the main text of the vignette.

img

column name which contains the names of the image files.

wiki

column name which contains the wiki URL for the vignette.

color

color of the vignette's strip (It also could be a column name which contains colors).

cex

number indicating the amount by which plotting text should be scaled relative to the default.

Value

a character vector of html formatted vignettes.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

## Obtaining information in English Wikidata
## Not run: 
names <- c("William Shakespeare", "Pablo Picasso")
info <- getWikiData(names)
info$html <- get_template_for_maps(info, title="entityLabel", text="entityDescription")

## End(Not run)

wikiTools documentation built on March 24, 2022, 9:05 a.m.