Description Usage Arguments Value Examples
Creates a label for data mapped data.
1 2 | eq_create_label(data, labelcols = c("LOCATION_NAME", "EQ_PRIMARY",
"TOTAL_DEATHS"), labellabels = c("Location", "Magnitude", "Deaths"))
|
data |
A |
labelcols |
A character list of column names. Defaults to assignment requirement. |
labellabels |
A character list of the names for the items set in |
A string with LOCATION_NAME, EQ_PRIMARY and TOTAL_DEATHS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
#Run with just cleaned data will produce the assignment defaults
eq_create_label(EQdata)
#Pass any columns names and associated labels
eq_create_label(EQdata,
labelcols=c("DATE"),
labellabels=c("EQ Estimated Date"))
#Use labellabels = NULL to preserve column names of data source as the map annotation (if its clean)
eq_create_label(EQdata,
labelcols="LATITUDE",
labellabels=NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.