Learn R Programming

geozoning (version 1.0.0)

findZCenterpt: findZCenterpt

Description

findZCenterpt

Usage

findZCenterpt(data, K, num = NULL)

Arguments

data

SpatialPointsDataFrame

K

zoning object, as returned by the calNei function

num

zone number or NULL for all zones

Value

a matrix of x and y coordinates for chosen points with as many rows as zones

Details

find point within zone for pretty labelling

Examples

Run this code
# NOT RUN {
data(mapTest)
# run zoning with 2 quantiles corresponding to probability values 0.4 and 0.7,
# saving initial zoning and last level zonings
criti=correctionTree(c(0.4,0.7),mapTest,SAVE=TRUE)
K=criti$zk[[2]][[1]]
data=mapTest$krigData
geozoning:::findZCenterpt(data,K)
# }

Run the code above in your browser using DataLab