popup
tables used as input for
mapview
. This optionally allows the user to include only a
subset of feature attributes.
popupTable(x, zcol, use_cpp = TRUE)
Spatial*
object.numeric
or character
vector indicating the columns
included in the output popup table. If missing, all columns are displayed.logical
determining whether or not to enable
Rcpp functionality.list
of HTML strings required to create feature popup table(s).
popupGraph
and popupImage
.
## Not run:
# library(sp)
#
# data(meuse)
# coordinates(meuse) <- ~ x + y
# proj4string(meuse) <- CRS("+init=epsg:28992")
#
# ## include columns 1 and 2 only
# mapview(meuse, popup = popupTable(meuse, zcol = 1:2))
# ## End(Not run)
Run the code above in your browser using DataLab