get_template_for_maps | R Documentation |
Create a drop-down vignette for nodes from different items (for maps).
get_template_for_maps( data, title = NULL, title2 = NULL, text = NULL, img = NULL, wiki = NULL, color = "#cbdefb", cex = 1 )
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. |
a character vector of html formatted vignettes.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.