Description Usage Arguments Value Examples
A wrapper for raster::spplot. Plots single column from input data frame on one of the built-in skeletal shapefiles.
1 2 3 |
data |
Data frame with at least one numeric or integer column containing data to be plotted, and at least one field corresponding to the element names or codes used in the shapefile attribute table. |
plot.field |
Character. The name of the field in 'data' containing the data to be plotted. Defaults to "NISP" |
join.field |
Character. The name of the field in 'data' that should be used to link to the shapefile attribute table. Defaults to "El_code" |
template |
Character. The name of the skeletal template to be used. This should be an .Rda file in the package "data" directory. Built-in options are "Bos", "Ovis", "Equus", "Cervus", "Canis", "Sus". Defauls to "Bos". |
background |
Logical: should a silhouette of the animal be plotted in the background? Defaults to TRUE. |
details |
Logical: should details of bone features be drawn, as well as the element outlines? Defaults to TRUE. |
bg |
Character. Colour for background silhouette, if 'background' is TRUE. Defaults to "gray80". |
null.col. |
Colour for elements with missing data. Defaults to "white". |
None.
1 2 | egData <- data.frame(El_code = c(1:140), NISP = rep(1:2, 70))
skelMap(egData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.