Add entities to the interactive map.
add_entities(map, entities, attributes = NULL, name = NULL,
label = NULL, color = NULL, text = NULL,
info = NULL, infoFrame = c("right","left"),
start = NULL, end = NULL, period = NULL, opacity = 0.2)
Object of class evolMap
.
an object of class evolMap
.
a spatial object of geometries.
a data frame with information to show for each geometry. Its columns names can be passed as parameters to the arguments.
name of the column with names in the entities or attributes data frame.
name of the column with labels in the entities or attributes data frame.
name of the column with color variable in the entities or attributes data frame.
name of the column in the entities or attributes data frame with texts in the entities or attributes data frame. This information will be shown as a popup.
name of the column with information to display in a panel in the data matrix.
Panel (right or left) where the information is to be displayed. The left panel is only available if a description is provided with add_description
.
name of the column with the start time of a period in the entities or attributes data frame.
name of the column with the end time of a period in the entities or attributes data frame.
name of the column with the period name in the entities or attributes data frame.
Entity opacity expressed as a numeric vector between 0 and 1. Default: 0.2.
Modesto Escobar modesto@usal.es, Department of Sociology and Communication, University of Salamanca, Carlos Prieto cprietos@usal.es, and David Barrios metal@usal.es, Bioinformatics Service, University of Salamanca.
data(World)
map <- create_map()
map <- add_entities(map, World, color="pop")
# \donttest{
# plot map
plot(map)
# }
Run the code above in your browser using DataLab