1
1
<!DOCTYPE html>
2
2
3
- < html xmlns =" http://www.w3.org/1999/xhtml " >
3
+ < html >
4
4
5
5
< head >
6
6
7
7
< meta charset ="utf-8 " />
8
- < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
9
8
< meta name ="generator " content ="pandoc " />
10
9
< meta http-equiv ="X-UA-Compatible " content ="IE=EDGE " />
11
10
12
11
13
- < meta name ="author " content ="by Valentin Stefan - last update 11 December 2019 " />
12
+ < meta name ="author " content ="by Valentin Stefan - last update 30 May 2024 " />
14
13
15
14
16
15
< title > bootstrapnet - R package to bootstrap indices of ecological networks</ title >
17
16
18
- < script src ="site_libs/jquery-1.11.3/jquery.min.js "> </ script >
17
+ < script src ="site_libs/header-attrs-2.26/header-attrs.js "> </ script >
18
+ < script src ="site_libs/jquery-3.6.0/jquery-3.6.0.min.js "> </ script >
19
19
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
20
20
< link href ="site_libs/bootstrap-3.3.5/css/cosmo.min.css " rel ="stylesheet " />
21
21
< script src ="site_libs/bootstrap-3.3.5/js/bootstrap.min.js "> </ script >
22
22
< script src ="site_libs/bootstrap-3.3.5/shim/html5shiv.min.js "> </ script >
23
23
< script src ="site_libs/bootstrap-3.3.5/shim/respond.min.js "> </ script >
24
- < script src ="site_libs/jqueryui-1.11.4/jquery-ui.min.js "> </ script >
24
+ < style > h1 {font-size : 34px ;}
25
+ h1 .title {font-size : 38px ;}
26
+ h2 {font-size : 30px ;}
27
+ h3 {font-size : 24px ;}
28
+ h4 {font-size : 18px ;}
29
+ h5 {font-size : 16px ;}
30
+ h6 {font-size : 12px ;}
31
+ code {color : inherit; background-color : rgba (0 , 0 , 0 , 0.04 );}
32
+ pre : not ([class ]) { background-color : white }</ style >
33
+ < script src ="site_libs/jqueryui-1.13.2/jquery-ui.min.js "> </ script >
25
34
< link href ="site_libs/tocify-1.9.1/jquery.tocify.css " rel ="stylesheet " />
26
35
< script src ="site_libs/tocify-1.9.1/jquery.tocify.js "> </ script >
27
36
< script src ="site_libs/navigation-1.1/tabsets.js "> </ script >
28
37
< link href ="site_libs/highlightjs-9.12.0/textmate.css " rel ="stylesheet " />
29
38
< script src ="site_libs/highlightjs-9.12.0/highlight.js "> </ script >
30
- < link href ="site_libs/font-awesome-5.1.0 /css/all.css " rel ="stylesheet " />
31
- < link href ="site_libs/font-awesome-5.1.0 /css/v4-shims.css " rel ="stylesheet " />
39
+ < link href ="site_libs/font-awesome-6.4.2 /css/all.min .css " rel ="stylesheet " />
40
+ < link href ="site_libs/font-awesome-6.4.2 /css/v4-shims.min .css " rel ="stylesheet " />
32
41
33
- < style type ="text/css "> code {white-space : pre;}</ style >
34
42
< style type ="text/css ">
35
- pre : not ([class ]) {
36
- background-color : white;
37
- }
38
- </ style >
43
+ code {white-space : pre-wrap;}
44
+ span .smallcaps {font-variant : small-caps;}
45
+ span .underline {text-decoration : underline;}
46
+ div .column {display : inline-block; vertical-align : top; width : 50% ;}
47
+ div .hanging-indent {margin-left : 1.5em ; text-indent : -1.5em ;}
48
+ ul .task-list {list-style : none;}
49
+ </ style >
50
+
51
+ < style type ="text/css "> code {white-space : pre;}</ style >
39
52
< script type ="text/javascript ">
40
53
if ( window . hljs ) {
41
54
hljs . configure ( { languages : [ ] } ) ;
48
61
49
62
50
63
51
- < style type ="text/css ">
52
- h1 {
53
- font-size : 34px ;
54
- }
55
- h1 .title {
56
- font-size : 38px ;
57
- }
58
- h2 {
59
- font-size : 30px ;
60
- }
61
- h3 {
62
- font-size : 24px ;
63
- }
64
- h4 {
65
- font-size : 18px ;
66
- }
67
- h5 {
68
- font-size : 16px ;
69
- }
70
- h6 {
71
- font-size : 12px ;
72
- }
73
- .table th : not ([align ]) {
74
- text-align : left;
75
- }
76
- </ style >
64
+
65
+
77
66
78
67
79
68
84
73
margin-left : auto;
85
74
margin-right : auto;
86
75
}
87
- code {
88
- color : inherit;
89
- background-color : rgba (0 , 0 , 0 , 0.04 );
90
- }
91
76
img {
92
77
max-width : 100% ;
93
78
}
103
88
summary {
104
89
display : list-item;
105
90
}
91
+ details > summary > p : only-child {
92
+ display : inline;
93
+ }
94
+ pre code {
95
+ padding : 0 ;
96
+ }
106
97
</ style >
107
98
108
99
109
100
< style type ="text/css ">
110
- /* padding for bootstrap navbar */
111
- body {
112
- padding-top : 51px ;
113
- padding-bottom : 40px ;
114
- }
115
- /* offset scroll position for anchor links (for fixed navbar) */
116
- .section h1 {
117
- padding-top : 56px ;
118
- margin-top : -56px ;
119
- }
120
- .section h2 {
121
- padding-top : 56px ;
122
- margin-top : -56px ;
123
- }
124
- .section h3 {
125
- padding-top : 56px ;
126
- margin-top : -56px ;
127
- }
128
- .section h4 {
129
- padding-top : 56px ;
130
- margin-top : -56px ;
131
- }
132
- .section h5 {
133
- padding-top : 56px ;
134
- margin-top : -56px ;
135
- }
136
- .section h6 {
137
- padding-top : 56px ;
138
- margin-top : -56px ;
139
- }
140
101
.dropdown-submenu {
141
102
position : relative;
142
103
}
164
125
margin-right : -10px ;
165
126
}
166
127
.dropdown-submenu : hover > a : after {
167
- border-left-color : # ffffff ;
128
+ border-left-color : # adb5bd ;
168
129
}
169
130
.dropdown-submenu .pull-left {
170
131
float : none;
176
137
}
177
138
</ style >
178
139
179
- < script >
140
+ < script type =" text/javascript " >
180
141
// manage active state of menu based on current page
181
142
$ ( document ) . ready ( function ( ) {
182
143
// active menu anchor
186
147
href = "index.html" ;
187
148
var menuAnchor = $ ( 'a[href="' + href + '"]' ) ;
188
149
189
- // mark it active
190
- menuAnchor . parent ( ) . addClass ( 'active' ) ;
150
+ // mark the anchor link active (and if it's in a dropdown, also mark that active)
151
+ var dropdown = menuAnchor . closest ( 'li.dropdown' ) ;
152
+ if ( window . bootstrap ) { // Bootstrap 4+
153
+ menuAnchor . addClass ( 'active' ) ;
154
+ dropdown . find ( '> .dropdown-toggle' ) . addClass ( 'active' ) ;
155
+ } else { // Bootstrap 3
156
+ menuAnchor . parent ( ) . addClass ( 'active' ) ;
157
+ dropdown . addClass ( 'active' ) ;
158
+ }
191
159
192
- // if it's got a parent navbar menu mark it active as well
193
- menuAnchor . closest ( 'li.dropdown' ) . addClass ( 'active' ) ;
160
+ // Navbar adjustments
161
+ var navHeight = $ ( ".navbar" ) . first ( ) . height ( ) + 15 ;
162
+ var style = document . createElement ( 'style' ) ;
163
+ var pt = "padding-top: " + navHeight + "px; " ;
164
+ var mt = "margin-top: -" + navHeight + "px; " ;
165
+ var css = "" ;
166
+ // offset scroll position for anchor links (for fixed navbar)
167
+ for ( var i = 1 ; i <= 6 ; i ++ ) {
168
+ css += ".section h" + i + "{ " + pt + mt + "}\n" ;
169
+ }
170
+ style . innerHTML = "body {" + pt + "padding-bottom: 40px; }\n" + css ;
171
+ document . head . appendChild ( style ) ;
194
172
} ) ;
195
173
</ script >
196
174
202
180
max-height : 500px ;
203
181
min-height : 44px ;
204
182
overflow-y : auto;
205
- background : white;
206
183
border : 1px solid # ddd ;
207
184
border-radius : 4px ;
208
185
}
209
186
210
- .tabset-dropdown > .nav-tabs > li .active : before {
211
- content : " " ;
187
+ .tabset-dropdown > .nav-tabs > li .active : before , . tabset-dropdown > . nav-tabs . nav-tabs-open : before {
188
+ content : "\e259 " ;
212
189
font-family : 'Glyphicons Halflings' ;
213
190
display : inline-block;
214
191
padding : 10px ;
215
192
border-right : 1px solid # ddd ;
216
193
}
217
194
218
195
.tabset-dropdown > .nav-tabs .nav-tabs-open > li .active : before {
219
- content : "" ;
220
- border : none;
221
- }
222
-
223
- .tabset-dropdown > .nav-tabs .nav-tabs-open : before {
224
- content : "" ;
196
+ content : "\e258" ;
225
197
font-family : 'Glyphicons Halflings' ;
226
- display : inline-block;
227
- padding : 10px ;
228
- border-right : 1px solid # ddd ;
198
+ border : none;
229
199
}
230
200
231
201
.tabset-dropdown > .nav-tabs > li .active {
238
208
border : none;
239
209
display : inline-block;
240
210
border-radius : 4px ;
211
+ background-color : transparent;
241
212
}
242
213
243
214
.tabset-dropdown > .nav-tabs .nav-tabs-open > li {
333
304
334
305
335
306
<!-- setup 3col/9col grid for toc_float and main content -->
336
- < div class ="row-fluid ">
307
+ < div class ="row ">
337
308
< div class ="col-xs-12 col-sm-4 col-md-3 ">
338
309
< div id ="TOC " class ="tocify ">
339
310
</ div >
347
318
< div class ="navbar navbar-default navbar-fixed-top " role ="navigation ">
348
319
< div class ="container ">
349
320
< div class ="navbar-header ">
350
- < button type ="button " class ="navbar-toggle collapsed " data-toggle ="collapse " data-target ="#navbar ">
321
+ < button type ="button " class ="navbar-toggle collapsed " data-toggle ="collapse " data-bs-toggle =" collapse " data-target =" #navbar " data-bs- target ="#navbar ">
351
322
< span class ="icon-bar "> </ span >
352
323
< span class ="icon-bar "> </ span >
353
324
< span class ="icon-bar "> </ span >
385
356
</ div > <!--/.container -->
386
357
</ div > <!--/.navbar -->
387
358
388
- < div class =" fluid-row " id ="header ">
359
+ < div id ="header ">
389
360
390
361
391
362
392
- < h1 class ="title toc-ignore "> bootstrapnet - R package to bootstrap indices of ecological networks</ h1 >
393
- < h4 class ="author "> by < a href ="https://github.com/valentinitnelav "> Valentin Stefan</ a > - last update 11 December 2019</ h4 >
363
+ < h1 class ="title toc-ignore "> bootstrapnet - R package to bootstrap
364
+ indices of ecological networks</ h1 >
365
+ < h4 class ="author "> by < a
366
+ href ="https://github.com/valentinitnelav "> Valentin Stefan</ a > - last
367
+ update 30 May 2024</ h4 >
394
368
395
369
</ div >
396
370
397
371
398
372
< div id ="overview " class ="section level1 ">
399
373
< h1 > Overview</ h1 >
400
- < p > R package for resampling network metrics/indices (bootstrapping without replacement).</ p >
401
- < p > It wraps around the < a href ="https://cran.r-project.org/web/packages/bipartite/index.html "> bipartite</ a > package functions < code > networklevel</ code > and < code > specieslevel</ code > .</ p >
402
- < p > Assuming a network/web like < code > Safariland</ code > from the bipartite package:</ p >
374
+ < p > R package for resampling network metrics/indices (bootstrapping
375
+ without replacement).</ p >
376
+ < p > It wraps around the < a
377
+ href ="https://cran.r-project.org/web/packages/bipartite/index.html "> bipartite</ a >
378
+ package functions < code > networklevel</ code > and
379
+ < code > specieslevel</ code > .</ p >
380
+ < p > Assuming a network/web like < code > Safariland</ code > from the
381
+ bipartite package:</ p >
403
382
< pre class ="r "> < code > library(bipartite)
404
383
data(Safariland)</ code > </ pre >
405
- < p > One can sample interactions without replacement from the network until all interactions have been used. The sampling procedure starts with a small sample size to which interactions are added until all are consumed. Every time we sample interactions, a smaller version of the entire network can be built and a network index/metric can be computed. The sampling procedure can be repeated as many times as needed, giving the possibility to compute mean values with quantile-based confidence intervals. The mean values across sample sizes can be plotted and indices of different networks can be visually compared. See examples below.</ p >
406
- < p > Below is an animation of the sampling method (one iteration). A detailed explanation of the method can be found < a href ="https://valentinitnelav.github.io/bootstrapnet/explain-sampling-method.html "> here</ a > .</ p >
407
- < p > < img src ="https://github.com/valentinitnelav/bootstrapnet/raw/master/man/cache/sample-nestedness-1-boot.gif " /> </ p >
384
+ < p > One can sample interactions without replacement from the network
385
+ until all interactions have been used. The sampling procedure starts
386
+ with a small sample size to which interactions are added until all are
387
+ consumed. Every time we sample interactions, a smaller version of the
388
+ entire network can be built and a network index/metric can be computed.
389
+ The sampling procedure can be repeated as many times as needed, giving
390
+ the possibility to compute mean values with quantile-based confidence
391
+ intervals. The mean values across sample sizes can be plotted and
392
+ indices of different networks can be visually compared. See examples
393
+ below.</ p >
394
+ < p > Below is an animation of the sampling method (one iteration). A
395
+ detailed explanation of the method can be found < a
396
+ href ="https://valentinitnelav.github.io/bootstrapnet/explain-sampling-method.html "> here</ a > .</ p >
397
+ < p > < img
398
+ src ="https://github.com/valentinitnelav/bootstrapnet/raw/master/man/cache/sample-nestedness-1-boot.gif " /> </ p >
399
+ < p > See also the < a
400
+ href ="https://github.com/valentinitnelav/bootstrapnet?tab=readme-ov-file#overview "> README
401
+ file</ a > on the GitHub code base.</ p >
408
402
</ div >
409
403
< div id ="installation " class ="section level1 ">
410
404
< h1 > Installation</ h1 >
411
- < p > You can install < code > bootstrapnet </ code > from GitHub with: </ p >
412
- < pre class =" r " > < code > # install.packages("devtools")
413
- devtools::install_github("valentinitnelav/bootstrapnet") </ code > </ pre >
405
+ < p > See details in the < a
406
+ href =" https://github.com/valentinitnelav/bootstrapnet?tab=readme-ov-file#installation " > README
407
+ file </ a > on the GitHub code base. </ p >
414
408
</ div >
415
409
416
410
@@ -424,7 +418,7 @@ <h1>Installation</h1>
424
418
425
419
// add bootstrap table styles to pandoc tables
426
420
function bootstrapStylePandocTables ( ) {
427
- $ ( 'tr.header ' ) . parent ( 'thead ' ) . parent ( 'table' ) . addClass ( 'table table-condensed' ) ;
421
+ $ ( 'tr.odd ' ) . parent ( 'tbody ' ) . parent ( 'table' ) . addClass ( 'table table-condensed' ) ;
428
422
}
429
423
$ ( document ) . ready ( function ( ) {
430
424
bootstrapStylePandocTables ( ) ;
@@ -442,7 +436,7 @@ <h1>Installation</h1>
442
436
443
437
$ ( document ) . ready ( function ( ) {
444
438
$ ( '.tabset-dropdown > .nav-tabs > li' ) . click ( function ( ) {
445
- $ ( this ) . parent ( ) . toggleClass ( 'nav-tabs-open' )
439
+ $ ( this ) . parent ( ) . toggleClass ( 'nav-tabs-open' ) ;
446
440
} ) ;
447
441
} ) ;
448
442
</ script >
@@ -452,6 +446,9 @@ <h1>Installation</h1>
452
446
< script >
453
447
$ ( document ) . ready ( function ( ) {
454
448
449
+ // temporarily add toc-ignore selector to headers for the consistency with Pandoc
450
+ $ ( '.unlisted.unnumbered' ) . addClass ( 'toc-ignore' )
451
+
455
452
// move toc-ignore selectors from section div to header
456
453
$ ( 'div.section.toc-ignore' )
457
454
. removeClass ( 'toc-ignore' )
@@ -463,7 +460,7 @@ <h1>Installation</h1>
463
460
theme : "bootstrap3" ,
464
461
context : '.toc-content' ,
465
462
hashGenerator : function ( text ) {
466
- return text . replace ( / [ . \\ / ? & ! # < > ] / g, '' ) . replace ( / \s / g, '_' ) . toLowerCase ( ) ;
463
+ return text . replace ( / [ . \\ / ? & ! # < > ] / g, '' ) . replace ( / \s / g, '_' ) ;
467
464
} ,
468
465
ignoreSelector : ".toc-ignore" ,
469
466
scrollTo : 0
0 commit comments