new_theme | R Documentation |
Create a new Theme object.
new_theme(
name,
feature,
feature_order = as.double(rev(seq_along(feature))),
id = uuid::UUIDgenerate()
)
name |
|
feature |
|
feature_order |
|
id |
|
A Theme object.
# find data path
# find data file paths
f1 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_spatial.tif",
package = "wheretowork"
)
f2 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_attribute.csv.gz",
package = "wheretowork"
)
f3 <- system.file(
"extdata", "projects", "sim_raster", "sim_raster_boundary.csv.gz",
package = "wheretowork"
)
# create new dataset
d <- new_dataset(f1, f2, f3)
# create new variable
v <- new_variable_from_auto(d, index = 1)
# create new feature
f <- new_feature(name = "Intact Alvar map", variable = v)
# create a theme using the feature
x <- new_theme(name = "Intact Alvar", feature = f)
# print object
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.