platemodel-class | R Documentation |
Meta-object containing paths to a unique plate tectonic model
## S4 method for signature 'platemodel'
initialize(
.Object,
rotation = NULL,
features = NULL,
name = NULL,
polygons = NULL
)
.Object |
Constructor argument (not needed). |
rotation |
( |
features |
( |
name |
( |
polygons |
( |
A platemodel
class object.
# path to provided archive
archive <- file.path(
system.file("extdata", package="rgplates"),
"paleomap_v3.zip")
# extract to temporary directory
unzip(archive, exdir=tempdir())
# path to the rotation file
rotPath <- file.path(tempdir(),
"PALEOMAP_PlateModel.rot")
# path to the polygons
polPath <- file.path(tempdir(),
"PALEOMAP_PlatePolygons.gpml")
# register in R - to be used in reconstruct()
model <- platemodel(rotation=rotPath, features=c("static_polygons"=polPath))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.