Description Usage Arguments Value Author(s) References Examples
Add marks for a point pattern
1 | addmark.ppp(X, add.mark, add.name = "storey")
|
X |
A point pattern (object of class "ppp"). |
add.mark |
Marks need added in the point pattern |
add.name |
Names of added marks (add.mark) |
A point pattern added marks
Zongzheng Chai, chaizz@126.com
None
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(spatstat)
data(finpines)
finpinesdata<-as.data.frame(finpines)
####Dividing the stories
finpines.storey<-storeydvd(finpinesdata$height,storeynum=6)
finpines.storey
####Computing the storey differation
##Add the storey mark for finepines
finpines.addstorey<-addmark.ppp(finpines,
add.mark=finpines.storey$heightdata[,2:3],
add.name=c("interval","storey" ))
finpines.addstorey
|
Loading required package: spatstat.data
Loading required package: nlme
Loading required package: rpart
spatstat 1.64-1 (nickname: ‘Help you I can, yes!’)
For an introduction to spatstat, type ‘beginner’
Note: spatstat version 1.64-1 is out of date by more than 10 months; we recommend upgrading to the latest version.
$heightfreq
interval
[0.8,1.57] (1.57,2.33] (2.33,3.1] (3.1,3.87] (3.87,4.63] (4.63,5.4]
20 31 26 22 16 11
$heightdata
height interval storey
1 1.70 (1.57,2.33] S5
2 1.70 (1.57,2.33] S5
3 1.60 (1.57,2.33] S5
4 4.10 (3.87,4.63] S2
5 3.10 (2.33,3.1] S4
6 4.30 (3.87,4.63] S2
7 2.30 (1.57,2.33] S5
8 4.00 (3.87,4.63] S2
9 5.40 (4.63,5.4] S1
10 1.80 (1.57,2.33] S5
11 3.20 (3.1,3.87] S3
12 1.30 [0.8,1.57] S6
13 3.80 (3.1,3.87] S3
14 1.50 [0.8,1.57] S6
15 2.10 (1.57,2.33] S5
16 3.30 (3.1,3.87] S3
17 3.00 (2.33,3.1] S4
18 3.20 (3.1,3.87] S3
19 1.50 [0.8,1.57] S6
20 1.60 (1.57,2.33] S5
21 2.10 (1.57,2.33] S5
22 1.40 [0.8,1.57] S6
23 2.80 (2.33,3.1] S4
24 4.00 (3.87,4.63] S2
25 1.40 [0.8,1.57] S6
26 1.60 (1.57,2.33] S5
27 4.00 (3.87,4.63] S2
28 1.90 (1.57,2.33] S5
29 4.80 (4.63,5.4] S1
30 1.60 (1.57,2.33] S5
31 3.00 (2.33,3.1] S4
32 3.10 (2.33,3.1] S4
33 4.40 (3.87,4.63] S2
34 2.10 (1.57,2.33] S5
35 3.00 (2.33,3.1] S4
36 2.40 (2.33,3.1] S4
37 1.90 (1.57,2.33] S5
38 2.30 (1.57,2.33] S5
39 4.80 (4.63,5.4] S1
40 1.80 (1.57,2.33] S5
41 2.00 (1.57,2.33] S5
42 3.50 (3.1,3.87] S3
43 3.30 (3.1,3.87] S3
44 2.80 (2.33,3.1] S4
45 1.65 (1.57,2.33] S5
46 2.40 (2.33,3.1] S4
47 3.50 (3.1,3.87] S3
48 1.00 [0.8,1.57] S6
49 3.00 (2.33,3.1] S4
50 2.40 (2.33,3.1] S4
51 3.40 (3.1,3.87] S3
52 0.80 [0.8,1.57] S6
53 2.30 (1.57,2.33] S5
54 5.00 (4.63,5.4] S1
55 3.60 (3.1,3.87] S3
56 3.40 (3.1,3.87] S3
57 4.00 (3.87,4.63] S2
58 1.50 [0.8,1.57] S6
59 4.70 (4.63,5.4] S1
60 5.00 (4.63,5.4] S1
61 2.80 (2.33,3.1] S4
62 1.40 [0.8,1.57] S6
63 2.90 (2.33,3.1] S4
64 4.60 (3.87,4.63] S2
65 1.60 (1.57,2.33] S5
66 2.30 (1.57,2.33] S5
67 4.40 (3.87,4.63] S2
68 3.60 (3.1,3.87] S3
69 4.90 (4.63,5.4] S1
70 2.10 (1.57,2.33] S5
71 1.50 [0.8,1.57] S6
72 3.00 (2.33,3.1] S4
73 3.00 (2.33,3.1] S4
74 3.20 (3.1,3.87] S3
75 3.20 (3.1,3.87] S3
76 3.00 (2.33,3.1] S4
77 3.00 (2.33,3.1] S4
78 1.90 (1.57,2.33] S5
79 3.60 (3.1,3.87] S3
80 3.30 (3.1,3.87] S3
81 2.40 (2.33,3.1] S4
82 4.90 (4.63,5.4] S1
83 2.50 (2.33,3.1] S4
84 1.60 (1.57,2.33] S5
85 3.90 (3.87,4.63] S2
86 4.00 (3.87,4.63] S2
87 4.20 (3.87,4.63] S2
88 3.10 (2.33,3.1] S4
89 1.40 [0.8,1.57] S6
90 3.80 (3.1,3.87] S3
91 1.80 (1.57,2.33] S5
92 2.90 (2.33,3.1] S4
93 2.20 (1.57,2.33] S5
94 3.50 (3.1,3.87] S3
95 3.20 (3.1,3.87] S3
96 2.10 (1.57,2.33] S5
97 5.20 (4.63,5.4] S1
98 3.50 (3.1,3.87] S3
99 3.90 (3.87,4.63] S2
100 1.50 [0.8,1.57] S6
101 0.90 [0.8,1.57] S6
102 2.80 (2.33,3.1] S4
103 1.50 [0.8,1.57] S6
104 2.30 (1.57,2.33] S5
105 4.00 (3.87,4.63] S2
106 0.90 [0.8,1.57] S6
107 2.30 (1.57,2.33] S5
108 1.20 [0.8,1.57] S6
109 2.50 (2.33,3.1] S4
110 3.70 (3.1,3.87] S3
111 2.00 (1.57,2.33] S5
112 3.80 (3.1,3.87] S3
113 1.30 [0.8,1.57] S6
114 3.20 (3.1,3.87] S3
115 2.70 (2.33,3.1] S4
116 4.80 (4.63,5.4] S1
117 2.30 (1.57,2.33] S5
118 4.50 (3.87,4.63] S2
119 1.30 [0.8,1.57] S6
120 1.30 [0.8,1.57] S6
121 3.10 (2.33,3.1] S4
122 4.30 (3.87,4.63] S2
123 2.10 (1.57,2.33] S5
124 4.80 (4.63,5.4] S1
125 2.50 (2.33,3.1] S4
126 1.20 [0.8,1.57] S6
Marked planar point pattern: 126 points
Mark variables: diameter, height, interval, storey
window: rectangle = [-5, 5] x [-8, 2] metres
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.