Package seg. September 8, 2013

Similar documents
Package seg. February 15, 2013

Package seg. February 20, 2015

Package ClustGeo. R topics documented: July 14, Type Package

Package Grid2Polygons

Package NetCluster. R topics documented: February 19, Type Package Version 0.2 Date Title Clustering for networks

Package Mondrian. R topics documented: March 4, Type Package

Package smoothr. April 4, 2018

Package orthogonalsplinebasis

Package trajectories

Package spd. R topics documented: August 29, Type Package Title Semi Parametric Distribution Version Date

Package RCEIM. April 3, 2017

Package CINID. February 19, 2015

Package dissutils. August 29, 2016

Package corclass. R topics documented: January 20, 2016

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package proxy. October 29, 2017

Package kirby21.base

Package radiomics. March 30, 2018

Package nngeo. September 29, 2018

Package geogrid. August 19, 2018

Package JBTools. R topics documented: June 2, 2015

Package angstroms. May 1, 2017

Package geomerge. July 31, 2018

Analysing Spatial Data in R: Representing Spatial Data

Package spatialtaildep

Package fso. February 19, 2015

Package bootlr. July 13, 2015

Package kdetrees. February 20, 2015

Package areal. December 31, 2018

Package slam. December 1, 2016

Package ipft. January 4, 2018

Package RCA. R topics documented: February 29, 2016

Package gwfa. November 17, 2016

Package munfold. R topics documented: February 8, Type Package. Title Metric Unfolding. Version Date Author Martin Elff

Package MeanShift. R topics documented: August 29, 2016

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package KernelKnn. January 16, 2018

Package feature. R topics documented: October 26, Version Date

Package rpostgislt. March 2, 2018

Package OutlierDC. R topics documented: February 19, 2015

Package optimus. March 24, 2017

Package smacpod. R topics documented: January 25, Type Package

Package coxsei. February 24, 2015

Package clustvarsel. April 9, 2018

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package cgh. R topics documented: February 19, 2015

Package EnQuireR. R topics documented: February 19, Type Package Title A package dedicated to questionnaires Version 0.

Package fractalrock. February 19, 2015

Package abf2. March 4, 2015

Package nodeharvest. June 12, 2015

Package beanplot. R topics documented: February 19, Type Package

Points Lines Connected points X-Y Scatter. X-Y Matrix Star Plot Histogram Box Plot. Bar Group Bar Stacked H-Bar Grouped H-Bar Stacked

Package superheat. February 4, 2017

Package nmslibr. April 14, 2018

Practical 11: Interpolating Point Data in R

Package SSLASSO. August 28, 2018

Package MultiMeta. February 19, 2015

Package TPD. June 14, 2018

Package exporkit. R topics documented: May 5, Type Package Title Expokit in R Version Date

Package feature. R topics documented: July 8, Version Date 2013/07/08

Package ECctmc. May 1, 2018

Package ibm. August 29, 2016

Package gwrr. February 20, 2015

Package qualmap. R topics documented: September 12, Type Package

Package pca3d. February 17, 2017

Zev Ross President, ZevRoss Spatial Analysis

Package slam. February 15, 2013

Package cutoffr. August 29, 2016

Package SoftClustering

Package rbgm. May 18, 2018

Package gfcanalysis. August 29, 2016

Package FastImputation

The supclust Package

Package bnbc. R topics documented: April 1, Version 1.4.0

Package nprotreg. October 14, 2018

Package OLScurve. August 29, 2016

Package manet. September 19, 2017

Package packcircles. April 28, 2018

Package nos. September 11, 2017

Package osrm. November 13, 2017

Package EDFIR. R topics documented: July 17, 2015

Package lvm4net. R topics documented: August 29, Title Latent Variable Models for Networks

Package lgarch. September 15, 2015

Package portfoliosim

Package d3heatmap. February 1, 2018

Package DiffCorr. August 29, 2016

Package clustering.sc.dp

Package flowdensity. June 28, 2018

Package lhs. R topics documented: January 4, 2018

Package strat. November 23, 2016

Package replicatedpp2w

Package VecStatGraphs3D

Package waver. January 29, 2018

Package SCORPIUS. June 29, 2018

Package MaxContrastProjection

Package crossword.r. January 19, 2018

Cell based GIS. Introduction to rasters

Package rmatio. July 28, 2017

Package svd. R topics documented: September 26, 2017

Package svd. R topics documented: March 24, Type Package. Title Interfaces to various state-of-art SVD and eigensolvers. Version 0.3.

Transcription:

Package seg September 8, 2013 Version 0.3-2 Date 2013-09-08 Title A set of tools for measuring spatial segregation Author Seong-Yun Hong, David O Sullivan Maintainer Seong-Yun Hong <hong.seongyun@gmail.com> Depends R (>= 2.10.0), methods, stats, sp, raster, spatstat (>= 1.27.0) Suggests spdep A package that provides functions for measuring spatial segregation. The methods implemented in this package include White s P index (1983), Morrill s D(adj) (1991), Wong s D(w) and D(s) (1993), and Reardon and O Sullivan s set of spatial segregation measures (2004). License GPL (>= 3) URL https://sites.google.com/site/hongseongyun/seg LazyLoad Yes Collate SegLocalEnv-class.R SegLocalEnv.R SegLocalEnv-methods.R getseglocalenv.r SegSpatial-class.R SegSpatial-methods.R SegSpatial.R SegSpatialExt-class.R SegSpatialExt-methods.R spseg.r seg.r whiteseg.r NeedsCompilation yes Repository CRAN Date/Publication 2013-09-08 08:11:14 1

2 getseglocalenv R topics documented: getseglocalenv....................................... 2 seg.............................................. 4 segdata........................................... 6 SegLocalEnv........................................ 7 SegLocalEnv-class..................................... 8 SegSpatial-class....................................... 10 spseg............................................ 11 update............................................ 13 whiteseg........................................... 14 Index 16 getseglocalenv Calculate Local Environment Parameters Calculate the population composition of the local environment at each data point from a matrix of coordinates, or an object of class Spatial or ppp. Usage getseglocalenv(x, data, power = 2, useexp = TRUE, maxdist, sprel, error =.Machine$double.eps) Arguments x data power useexp maxdist sprel error a numeric matrix or data frame with coordinates (each row is a point), or an object of class Spatial or ppp. an object of class matrix, or one that can be coerced to that class. The number of rows in data should equal the number of points in x, and the number of columns should be greater than one (at least two population groups are required). This can be missing if x has a data frame attached to it. a numeric value that determines the change rate of a distance weight function. If zero, all data points have the same weight regardless of the distance. Typically 1-5. logical. If FALSE, use a simple inverse distance function instead of a negative exponential function. See Details. an optional numeric value specifying a search radius for the construction of each local environment. Must be a positive value, or zero. an optional object of class dist or nb. See Details. a numeric value. If useexp = FALSE, this value will be added to the denominator to prevent dividing by zero.

getseglocalenv 3 Details The local environment parameters are the weighted averages of the populations of all points within a search radius maxdist and are an essential component for calculation of the spatial segregation measures. By default, the weight of each point is calculated from a negative exponential function, which is defined as: w(d) = e d power where d is the Euclidean distance between two points. If useexp is FALSE, a simple inverse distance function is used to calculate the weight of each point: w(d) = 1 (d + error) power If maxdist is not provided (default), all data points in the study area are used for the construction of each local environment. It is recommended to specify this parameter to speed up the calculation process. If a distance measure other than the Euclidean distance is required to represent spatial proximity between the points, the users can provide an object of class dist, which contains the distances between all pairs of the points, through an optional argument sprel. One convenient way of obtaining such information may be the use of the function dist, which offers a variety of distance measures, such as Manhattan, Canberra, and Minkowski. Or alternatively, one can supply an object of class nb to use a k-nearest neighbour averaging or polygon contiguity. Value An object of class LocalEnv. Note Note that this function is not to interpolate between data points. The calculation of each local environment involves the point itself, so the simple inverse distance function with a power of 2 or more should be used with care. Author(s) Seong-Yun Hong See Also SegLocalEnv, SegLocalEnv-class, spseg, dist

4 seg Examples # Create a random data set with 50 data points and 3 population groups xy <- matrix(runif(100), ncol = 2) pop <- matrix(runif(150), ncol = 3) env1 <- getseglocalenv(xy, pop) summary(env1) xy.dist <- dist(xy, method = "manhattan") maxdist <- quantile(as.matrix(xy), 0.75) env2 <- getseglocalenv(xy, pop, maxdist = maxdist, sprel = xy.dist) summary(env2) env3 <- getseglocalenv(xy, pop, useexp = FALSE, power = 0, maxdist = 0.5) summary(env3) env4 <- getseglocalenv(xy, pop, useexp = FALSE, maxdist = 0.5) summary(env4) seg Calculate Index of Dissimilarity seg calculates Duncan and Duncan s index of dissimilarity between two population groups. If nb is given, the index can be adjusted to reflect the spatial distribution of population. Usage seg(data, nb, tol =.Machine$double.eps) Arguments data nb tol a numeric matrix or data frame with two columns that represent mutually exclusive population groups (e.g., Asians and non-asians). If more than two columns are given, only the first two will be used for computing the index. an optional matrix object describing the intensity of interaction between geographic units. the tolerance for detecting differences between values. Differences in the input values that are smaller than tol should make no changes in the output index values. The default is.machine$double.eps. See help(.machine) for definition.

seg 5 Details Value nb must be a square matrix (same number of rows and columns) but does not have to be symmetric. When nb is not specified, seg calculates the traditional index of dissimilarity proposed by Duncan and Duncan (1955). If nb is a rook-based contiguity matrix standardised by the total number of neighbours, the calculation follows the Morrill s adjusted index of dissimilarity (1991). See the example code below and help(nb2mat) for more information regarding how to construct such a matrix. If nb contains row-standardised shared boundary lengths between geographic units, the computed index is Wong s adjusted D. In R, vect2neigh in the spgrass6 package can be used to obtain the shared boundary lengths. A single numeric value between 0 and 1, indicating the degree of segregation; 0 for no segregation, and 1 for complete segregation. Author(s) Seong-Yun Hong References Duncan, O. D., & Duncan, B. (1955). A methodological analysis of segregation indexes. American Sociological Review, 20, 210-217. Morrill, R. L. (1991). On the measure of geographic segregation. Geography Research Forum, 11, 25-36. See Also Wong, D. W. S. (1993). Spatial indices of segregation. Urban Studies, 30, 559-572. spseg, whiteseg Examples if (require(spdep)) { grd <- GridTopology(cellcentre.offset=c(0.5,0.5), cellsize=c(1,1), cells.dim=c(10,10)) grd.sp <- as.spatialpolygons.gridtopology(grd) grd.nb <- nb2mat(poly2nb(grd.sp, queen = FALSE), style = "B") grd.nb <- grd.nb / sum(grd.nb) data(segdata) parval <- par() par(mfrow = c(2, 4), mar = c(0, 1, 0, 1)) d <- numeric() m <- numeric() for (i in 1:8) { idx <- 2 * i

6 segdata d <- append(d, seg(segdata[,(idx-1):idx])) m <- append(m, seg(segdata[,(idx-1):idx], grd.nb)) full <- segdata[,(idx-1)] == 100 half <- segdata[,(idx-1)] == 50 plot(grd.sp) plot(grd.sp[full,], col = "Black", add = TRUE) if (any(half)) plot(grd.sp[half,], col = "Grey", add = TRUE) text(5, 11.5, labels = paste("d = ", round(d[i], 2), ", D(adj) = ", round(m[i], 2), sep = "")) } par(mfrow = parval$mfrow, mar = parval$mar) } segdata Hypothetical Patterns of Segregation Usage Format This data set contains eight different spatial configurations that were used by Morrill (1991) and Wong (1993) to test their segregation measures. data(segdata) An object of class data.frame. The data set contains 16 columns, representing eight idealised spatial patterns. Each column indicates the following information: [,1] A1 Pattern A, Group 1 [,2] A2 Pattern A, Group 2 [,3] B1 Pattern B, Group 1 [,4] B2 Pattern B, Group 2 [,5] C1 Pattern C, Group 1 [,6] C2 Pattern C, Group 2 [,7] D1 Pattern D, Group 1 [,8] D2 Pattern D, Group 2 [,9] E1 Pattern E, Group 1 [,10] E2 Pattern E, Group 2 [,11] F1 Pattern F, Group 1 [,12] F2 Pattern F, Group 2 [,13] G1 Pattern G, Group 1 [,14] G2 Pattern G, Group 2 [,15] H1 Pattern H, Group 1 [,16] H2 Pattern H, Group 2

SegLocalEnv 7 Source Morrill, R. L. (1991). On the measure of geographic segregation. Geography Research Forum, 11, 25-36. Wong, D. W. S. (1993). Spatial Indices of Segregation. Urban Studies, 30, 559-572. Examples require(sp); data(segdata) grd <- GridTopology(cellcentre.offset=c(0.5,0.5), cellsize=c(1,1), cells.dim=c(10,10)) grd.sp <- as.spatialpolygons.gridtopology(grd) pd <- par() par(mfrow = c(2, 4), mar = c(0, 1, 0, 1)) for (i in 1:8) { full <- segdata[,(2*i)-1] == 100 half <- segdata[,(2*i)-1] == 50 plot(grd.sp) plot(grd.sp[full,], col = "Black", add = TRUE) if (any(half)) plot(grd.sp[half,], col = "Grey", add = TRUE) text(5, 11.5, labels = paste("pattern", LETTERS[i])) } par(mfrow = pd$mfrow, mar = pd$mar) SegLocalEnv Create an Object of Class SegLocalEnv Create a new object of class SegLocalEnv from a matrix of coordinates and population data. Usage SegLocalEnv(coords, data, env, proj4string = CRS(as.character(NA))) Arguments coords data env proj4string a numeric matrix or data frame with coordinates (each row is a point). an object of class matrix containing the population of each group at each data point. The number of rows in data should equal the number of points in coords, and the number of columns should be greater than one (at least two population groups are required). an optional object of class matrix containing the local environment parameters. Must be the same dimensions as data. If missing, use data. an optional projection string of class CRS.

8 SegLocalEnv-class Value An object of class SegLocalEnv. Author(s) See Also Seong-Yun Hong getseglocalenv, update.seglocalenv, spseg, SegLocalEnv-class Examples # Create a random data set with 50 data points and 3 population groups xy <- matrix(runif(100), ncol = 2) pop <- matrix(runif(150), ncol = 3) localenv <- SegLocalEnv(coords = xy, data = pop) SegLocalEnv-class Class SegLocalEnv Class for local environments of spatial data points. Objects from the Class Slots Objects can be created by the function SegLocalEnv. coords an object of class matrix, containing the coordinates (each row is a point). data an object of class matrix, containing the population composition at each point (each column is a population group). env an object of class matrix, containing the population composition of the local environment for each point. proj4string an object of class CRS, projection string. Methods coerce signature(from = "SegLocalEnv", to = "list"): coerce an object of class SegLocalEnv to an object of class list. coerce signature(from = "SegLocalEnv", to = "SpatialPointsDataFrame"): coerce an object of class SegLocalEnv to an object of class SpatialPointsDataFrame. coerce signature(from = "list", to = "SegLocalEnv"): coerce an object of class list to an object of class SegLocalEnv.

SegLocalEnv-class 9 coerce signature(from = "SpatialPointsDataFrame", to = "SegLocalEnv"): coerce an object of class SpatialPointsDataFrame to an object of class SegLocalEnv. coerce signature(from = "SpatialPolygonsDataFrame", to = "SegLocalEnv"): coerce an object of class SpatialPolygonsDataFrame to an object of class SegLocalEnv. as.list signature(x = "SegLocalEnv"): coerce an object of class SegLocalEnv to an object of class list. show signature(object = "SegLocalEnv"): show the number of points and data columns in an object of class SegLocalEnv. print signature(x = "SegLocalEnv"): same as show. summary signature(object = "SegLocalEnv"): summarise the population compositions of points and local environments in an object of class SegLocalEnv. plot signature(x = "SegLocalEnv"): draw a plot, or plots, of points in an object of class SegLocalEnv. Use an optional argument which.col to specify a column of the data that determines the points sizes. See Examples below for demonstration. points signature(x = "SegLocalEnv"): draw points in an object of class SegLocalEnv on an active graphic device. Author(s) Seong-Yun Hong See Also SegLocalEnv, getseglocalenv, update Examples # Create a random data set with 50 data points and 3 population groups xy <- matrix(runif(100), ncol = 2) pop <- matrix(runif(150), ncol = 3) localenv <- SegLocalEnv(coords = xy, data = pop) # Generic functions print(localenv) summary(localenv) par(mfrow = c(1, 3)) plot(localenv, xlab = "x", ylab = "y") par(mfrow = c(1, 2)) plot(localenv, xlab = "x", ylab = "y", which.col = c(1, 3)) as.list(localenv)

10 SegSpatial-class SegSpatial-class Class SegSpatial Class for spatial segregation index values. Objects from the Class Objects can be created by the function spseg, or SegSpatial. Slots d an object of class numeric, indicating the degree of the spatial dissimilarity index. r an object of class numeric, indicating the degree of the spatial diversity index. h an object of class numeric, indicating the degree of the spatial information theory index. p an object of class matrix, showing the spatial exposure/isolation of all population groups. Methods coerce signature(from = "SegSpatial", to = "list"): coerce an object of class SegSpatial to an object of class list. coerce signature(from = "list", to = "SegSpatial"): coerce an object of class list to an object of class SegSpatial. as.list signature(x = "SegSpatial"): coerce an object of class SegSpatial to an object of class list. show signature(object = "SegSpatial"): print the spatial segregation values. print signature(x = "SegSpatial"): same as show. Author(s) Seong-Yun Hong See Also spseg

spseg 11 spseg Calculate Spatial Segregation Measures Calculate Reardon and O Sullivan s four spatial segregation measures. Usage spseg(x, data, method = "all", smoothing = "none", nrow = 100, ncol = 100, window, sigma, usec = TRUE, negative.rm = FALSE, tol =.Machine$double.eps, verbose = FALSE,...) SegSpatial(env, method = "all", usec = TRUE, negative.rm = FALSE, tol =.Machine$double.eps) Arguments x env data method smoothing nrow ncol window sigma a numeric matrix or data frame with coordinates (each row is a point), or an object of class Spatial or ppp. an object of class SegLocalEnv. an object of class matrix, or one that can be coerced to that class. The number of rows in data should equal the number of points in x, and the number of columns should be greater than one (at least two population groups are required). This can be missing if x has a data frame attached to it. a vector of character strings indicating an measure or measures to be computed. This must be one or more of the strings "all" (default), "exposure", "information", "diversity", and "dissimilarity". Abbreviations are accepted, as long as it is clear which method is meant. a character string indicating a smoothing method. This must be (an abbreviation of) one of the strings "none" (default), "kernel", or "equal". an optional numeric value indicating the number of row cells in the rasterised data surface. Ignored if smoothing = "none". an optional numeric value indicating the number of column cells. an optional object of class owin to be passed to smooth.ppp. See Details. an optional numeric value specifying standard deviation of isotropic Gaussian smoothing kernel to be passed to density.ppp. See also Details. usec logical. If TRUE, calculate the segregation values in C. negative.rm tol logical. If TRUE, all geographic units where at least one group (i.e., column) has a population of zero or less will be removed to prevent -Inf or NaN in the information theory index. If FALSE, the non-positive values will be replaced with tol. the tolerance for detecting differences between values. Differences in the input values that are smaller than tol should make no changes in the output index values. The default is.machine$double.eps. See help(.machine) for definition.

12 spseg Details Value Note verbose logical. If TRUE, print the current stage of the computation and time spent on each job to the screen.... optional arguments to be passed to getlocalenv to compute the population composition of each local environment. SegSpatial computes the set of spatial segregation measures proposed by Reardon and O Sullivan. spseg is a wrapper function, which calls SegSpatial after constructing a population density surface and its local environment parameters with user-specified options. Currently the population density surface is estimated using the rasterize function in the raster package if the population density is assumed to be uniform in each census tract, or using density.ppp in the spatstat package if the kernel density estimation is to be used. The local environment parameters are calculated based on the output surface using getseglocalenv. An object of class SegSpatialExt. The exposure/isolation index, P, is presented in a matrix form. The spatial exposure of group m to group n is located in the row m and column n of the matrix. The matrix is rarely symmetric in practice so the spatial exposure index should be interpreted with care. The spatial isolation index values are given in the diagonal cells of the matrix; cell value at (m, m) indicates the degree of spatial isolation for group m for example. Author(s) Seong-Yun Hong References Reardon, S. F. and O Sullivan, D. (2004) Measures of spatial segregation. Sociological Methodology, 34, 121-162. Reardon, S. F., Farrell, C. R., Matthews, S. A., O Sullivan, D., Bischoff, K., and Firebaugh, G. (2009) Race and space in the 1990s: Changes in the geographic scale of racial residential segregation, 1990-2000. Social Science Research, 38, 55-70. See Also getseglocalenv, SegSpatial-class, rasterize, density.ppp Examples # Create a random data set with 50 data points and 3 population groups xy <- matrix(runif(100), ncol = 2) pop <- matrix(runif(150), ncol = 3) rana <- spseg(xy, pop, smoothing = "kernel", maxdist = 0.5)

update 13 ranb <- spseg(xy, pop, smoothing = "kernel", useexp = FALSE, power = 0, maxdist = 0.5) print(ranb, digits = 3) par(mfrow = c(1, 3), mar = c(0, 1, 0, 2.5)) plot(ranb, main = "") update Update an Object of Class SegLocalEnv Update an existing object of class SegLocalEnv. Usage ## S3 method for class SegLocalEnv update(object, coords, data, env, proj4string,...) Arguments object coords data env proj4string... ignored. an object of class LocalEnv to be updated. an optional object of class matrix containing coordinates of the data points (each row is a point). an optional object of class matrix containing the population of each group at each data point. The number of rows in data should equal the number of points in coords, and the number of columns should be greater than one (at least two population groups are required). an optional object of class matrix containing the local environment parameters. Must be the same dimensions as data. an optional projection string of class CRS. Value An object of class SegLocalEnv. Author(s) Seong-Yun Hong See Also SegLocalEnv, getseglocalenv, SegLocalEnv-class

14 whiteseg Examples # Create a random data set with 50 data points and 3 population groups xy <- matrix(runif(100), ncol = 2) pop <- matrix(runif(150), ncol = 3) localenv <- SegLocalEnv(coords = xy, data = pop) print(localenv) # Update the projection information proj <- CRS("+proj=nzmg +datum=nzgd49") localenv2 <- update(localenv, proj4string = proj) print(localenv2) whiteseg Calculate White s Segregation Measure Usage whiteseg computes White s P index. Unlike the traditional, aspatial index of dissimilarity, this measure incorporates the spatial relationships among the geographic units into the calculation, so it does not suffer from the checkerboard problem. whiteseg(x, data, nb, fun,...) Arguments x data nb fun Details a numeric matrix or data frame with coordinates (each row is a point), or an object of class Spatial. an object of class matrix, or one that can be coerced to that class. The number of rows in data should equal the number of geographic units in x, and the number of columns should be greater than one (at least two population groups are required). This can be missing if x has a data frame attached to it. an optional matrix object indicating the distances between the geographic units. a function for the calculation of proximity. The function should take a numeric vector as an argument (distance) and return a vector of the same length (proximity). If this is not specified, a negative exponential function is used by default.... optional arguments to be passed to dist when calculating the distances between the geographic units in x. Ignored if nb is given. See help(dist) for available options. nb must be a square matrix (same number of rows and columns) but does not have to be symmetric. When nb is not specified, whiteseg computes the distance matrix of x using the specified optional arguments in....

whiteseg 15 Value A single numeric value indicating the degree of segregation; a value of 1 indicates absence of segregation, and values greater than 1.0 indicate clustering. If the index value is less than one, it indicates an unusual form of segregation (i.e., people live closer to other population groups). Author(s) Seong-Yun Hong References White, M. J. (1983). The measurement of spatial segregation. The American Journal of Sociology, 88, 1008-1018. See Also seg, spseg, dist Examples require(sp) grd <- GridTopology(cellcentre.offset=c(0.5,0.5), cellsize=c(1,1), cells.dim=c(10,10)) grd.sp <- as.spatialpolygons.gridtopology(grd) data(segdata) parval <- par() par(mfrow = c(2, 4), mar = c(0, 1, 0, 1)) d <- numeric() p <- numeric() for (i in 1:8) { idx <- 2 * i d <- append(d, seg(segdata[,(idx-1):idx])) p <- append(p, whiteseg(grd.sp, data = segdata[,(idx-1):idx])) full <- segdata[,(idx-1)] == 100 half <- segdata[,(idx-1)] == 50 plot(grd.sp) plot(grd.sp[full,], col = "Black", add = TRUE) if (any(half)) plot(grd.sp[half,], col = "Grey", add = TRUE) text(5, 11.5, labels = paste("d = ", round(d[i], 2), ", P = ", round(p[i], 2), sep = "")) } par(mfrow = parval$mfrow, mar = parval$mar)

Index Topic classes SegLocalEnv-class, 8 SegSpatial-class, 10 Topic datasets segdata, 6 as.list.seglocalenv-method as.list.segspatial-method as.list.segspatialext-method coerce,list,seglocalenv-method coerce,list,segspatial-method coerce,seglocalenv,list-method coerce,seglocalenv,spatialpointsdataframe-method coerce,segspatial,list-method coerce,segspatialext,list-method coerce,spatialpointsdataframe,seglocalenv-method coerce,spatialpolygonsdataframe,seglocalenv-method getseglocalenv, 2, 8, 9, 12, 13 plot.seglocalenv-method plot.segspatialext-method points.seglocalenv-method print.seglocalenv-method 16 print.segspatial-method print.segspatialext-method seg, 4, 15 segdata, 6 SegLocalEnv, 3, 7, 9, 13 SegLocalEnv-class, 8 SegSpatial, 10 SegSpatial (spseg), 11 SegSpatial-class, 10 SegSpatialExt-class (SegSpatial-class), 10 show,seglocalenv-method show,segspatial-method show,segspatialext-method spseg, 3, 5, 8, 10, 11, 15 summary.seglocalenv-method update, 9, 13 update.seglocalenv, 8 whiteseg, 5, 14