skelMap: Plot colour-graded skeletal diagram.

Description Usage Arguments Value Examples

Description

A wrapper for raster::spplot. Plots single column from input data frame on one of the built-in skeletal shapefiles.

Usage

1
2
3
skelMap(data, plot.field = "NISP", join.field = "El_code",
  template = "Bos", background = T, details = T, bg = "gray80",
  null.col = "white")

Arguments

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".

Value

None.

Examples

1
2
egData <- data.frame(El_code = c(1:140), NISP = rep(1:2, 70))
skelMap(egData)

davidcorton/osteoGIS documentation built on May 14, 2019, 11:09 p.m.