methods_m_surr: Method for class m_surr

Description Usage Arguments Author(s) References Examples

Description

A function to plots the m-surround give an object of the class m_surr obtain with the code m.surround.
The plot() function allows the user view the configuration of the m-surrounding. The argument type select the type o visualization.
The print() print the matrix of the m-surrounding.
. The summary give information about the characteristics of th m-surrounding
.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'm_surr'
summary(object, ...)

## S3 method for class 'm_surr'
plot(x, type = 1, ...)

## S3 method for class 'm_surr'
print(x, ...)

Arguments

object

object of class m_surr. 2 plot W matrix with network

...

further arguments passed to or from other methods.

x

object of class m_surr

type

numeric. 1 (default) to get the plot with igraph.

Author(s)

Fernando López fernando.lopez@upct.es
Román Mínguez roman.minguez@uclm.es
Antonio Páez paezha@gmail.com
Manuel Ruiz manuel.ruiz@upct.es

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Obtain m-surroundings with degree of overlapping r
rm(list = ls())
N <- 100
cx <- runif(N)
cy <- runif(N)
x <- cbind(cx,cy)
m = 4
r = 2
msurr_points <- m.surround(x = x, m = m, r = r,control = list(dtmaxabs = 0.5))
plot(msurr_points, type = 1)
plot(msurr_points, type = 2)
print(msurr_points)

rm(list = ls())
data("FastFood")
m = 6
r = 1
msurr_points <-  m.surround(x = FastFood.sf, m = m, r = r, distance = "Euclidean", control = list(dtmaxpc = .01))
plot(msurr_points, type = 1)
plot(msurr_points, type = 2)
print(msurr_points)

rominsal/spqdata documentation built on Jan. 24, 2021, 11:11 a.m.