Learn R Programming

jcext (version 0.1.1)

plot_jcscheme: Plot the classification scheme

Description

Visualises the original Jenkinson & Collison scheme for one given central point surrounded by the 16-points.

Usage

plot_jcscheme(centralp, loni, lati, fullmap = TRUE)

Arguments

centralp

Array with the central point (lonigutde, latitude).

loni

Array with longitude values.

lati

Array with latitude values.

fullmap

Logical. If TRUE a fullmap is plotted, if FALSE, only the region selected is plotted.

Value

A plot device

Details

The map shows the scheme over the whole map, or either it shows the scheme over the selected region. For that, the maximum and mininum coordinates are defined as: Maximum longitude, by default defined by the points: x6, x10 or 14. Minimum longitude, by default defined by the points: x3, x7 or 11. Maximum latitude, by default defined by the points: x1 or x2. Minimum latitude, by default defined by the points: x15 or 16.

See Also

get_jcpoints

Examples

Run this code
# NOT RUN {
# Visualise the scheme for one point
library(jcext)
# Define a central point
mycentral <- c(10,50)
# load the data to get coordinates
data(press)
# Visualise the whole map
plot_jcscheme(mycentral,press$loni,press$lati,fullmap=TRUE)
# Visualise the region
plot_jcscheme(mycentral,press$loni,press$lati,fullmap=FALSE)
# }

Run the code above in your browser using DataLab