Skip to content

Commit 946c6af

Browse files
Refereed to readme & update htmls
1 parent f208c97 commit 946c6af

37 files changed

+43859
-115
lines changed

docs/index.html

Lines changed: 104 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,54 @@
11
<!DOCTYPE html>
22

3-
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<html>
44

55
<head>
66

77
<meta charset="utf-8" />
8-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
98
<meta name="generator" content="pandoc" />
109
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
1110

1211

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" />
1413

1514

1615
<title>bootstrapnet - R package to bootstrap indices of ecological networks</title>
1716

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>
1919
<meta name="viewport" content="width=device-width, initial-scale=1" />
2020
<link href="site_libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
2121
<script src="site_libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
2222
<script src="site_libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
2323
<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>
2534
<link href="site_libs/tocify-1.9.1/jquery.tocify.css" rel="stylesheet" />
2635
<script src="site_libs/tocify-1.9.1/jquery.tocify.js"></script>
2736
<script src="site_libs/navigation-1.1/tabsets.js"></script>
2837
<link href="site_libs/highlightjs-9.12.0/textmate.css" rel="stylesheet" />
2938
<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" />
3241

33-
<style type="text/css">code{white-space: pre;}</style>
3442
<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>
3952
<script type="text/javascript">
4053
if (window.hljs) {
4154
hljs.configure({languages: []});
@@ -48,32 +61,8 @@
4861

4962

5063

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+
7766

7867

7968

@@ -84,10 +73,6 @@
8473
margin-left: auto;
8574
margin-right: auto;
8675
}
87-
code {
88-
color: inherit;
89-
background-color: rgba(0, 0, 0, 0.04);
90-
}
9176
img {
9277
max-width:100%;
9378
}
@@ -103,40 +88,16 @@
10388
summary {
10489
display: list-item;
10590
}
91+
details > summary > p:only-child {
92+
display: inline;
93+
}
94+
pre code {
95+
padding: 0;
96+
}
10697
</style>
10798

10899

109100
<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-
}
140101
.dropdown-submenu {
141102
position: relative;
142103
}
@@ -164,7 +125,7 @@
164125
margin-right: -10px;
165126
}
166127
.dropdown-submenu:hover>a:after {
167-
border-left-color: #ffffff;
128+
border-left-color: #adb5bd;
168129
}
169130
.dropdown-submenu.pull-left {
170131
float: none;
@@ -176,7 +137,7 @@
176137
}
177138
</style>
178139

179-
<script>
140+
<script type="text/javascript">
180141
// manage active state of menu based on current page
181142
$(document).ready(function () {
182143
// active menu anchor
@@ -186,11 +147,28 @@
186147
href = "index.html";
187148
var menuAnchor = $('a[href="' + href + '"]');
188149

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+
}
191159

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);
194172
});
195173
</script>
196174

@@ -202,30 +180,22 @@
202180
max-height: 500px;
203181
min-height: 44px;
204182
overflow-y: auto;
205-
background: white;
206183
border: 1px solid #ddd;
207184
border-radius: 4px;
208185
}
209186

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";
212189
font-family: 'Glyphicons Halflings';
213190
display: inline-block;
214191
padding: 10px;
215192
border-right: 1px solid #ddd;
216193
}
217194

218195
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
219-
content: "&#xe258;";
220-
border: none;
221-
}
222-
223-
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
224-
content: "";
196+
content: "\e258";
225197
font-family: 'Glyphicons Halflings';
226-
display: inline-block;
227-
padding: 10px;
228-
border-right: 1px solid #ddd;
198+
border: none;
229199
}
230200

231201
.tabset-dropdown > .nav-tabs > li.active {
@@ -238,6 +208,7 @@
238208
border: none;
239209
display: inline-block;
240210
border-radius: 4px;
211+
background-color: transparent;
241212
}
242213

243214
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
@@ -333,7 +304,7 @@
333304

334305

335306
<!-- setup 3col/9col grid for toc_float and main content -->
336-
<div class="row-fluid">
307+
<div class="row">
337308
<div class="col-xs-12 col-sm-4 col-md-3">
338309
<div id="TOC" class="tocify">
339310
</div>
@@ -347,7 +318,7 @@
347318
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
348319
<div class="container">
349320
<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">
351322
<span class="icon-bar"></span>
352323
<span class="icon-bar"></span>
353324
<span class="icon-bar"></span>
@@ -385,32 +356,55 @@
385356
</div><!--/.container -->
386357
</div><!--/.navbar -->
387358

388-
<div class="fluid-row" id="header">
359+
<div id="header">
389360

390361

391362

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>
394368

395369
</div>
396370

397371

398372
<div id="overview" class="section level1">
399373
<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>
403382
<pre class="r"><code>library(bipartite)
404383
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>
408402
</div>
409403
<div id="installation" class="section level1">
410404
<h1>Installation</h1>
411-
<p>You can install <code>bootstrapnet</code> from GitHub with:</p>
412-
<pre class="r"><code># install.packages(&quot;devtools&quot;)
413-
devtools::install_github(&quot;valentinitnelav/bootstrapnet&quot;)</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>
414408
</div>
415409

416410

@@ -424,7 +418,7 @@ <h1>Installation</h1>
424418

425419
// add bootstrap table styles to pandoc tables
426420
function bootstrapStylePandocTables() {
427-
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
421+
$('tr.odd').parent('tbody').parent('table').addClass('table table-condensed');
428422
}
429423
$(document).ready(function () {
430424
bootstrapStylePandocTables();
@@ -442,7 +436,7 @@ <h1>Installation</h1>
442436

443437
$(document).ready(function () {
444438
$('.tabset-dropdown > .nav-tabs > li').click(function () {
445-
$(this).parent().toggleClass('nav-tabs-open')
439+
$(this).parent().toggleClass('nav-tabs-open');
446440
});
447441
});
448442
</script>
@@ -452,6 +446,9 @@ <h1>Installation</h1>
452446
<script>
453447
$(document).ready(function () {
454448

449+
// temporarily add toc-ignore selector to headers for the consistency with Pandoc
450+
$('.unlisted.unnumbered').addClass('toc-ignore')
451+
455452
// move toc-ignore selectors from section div to header
456453
$('div.section.toc-ignore')
457454
.removeClass('toc-ignore')
@@ -463,7 +460,7 @@ <h1>Installation</h1>
463460
theme: "bootstrap3",
464461
context: '.toc-content',
465462
hashGenerator: function (text) {
466-
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_').toLowerCase();
463+
return text.replace(/[.\\/?&!#<>]/g, '').replace(/\s/g, '_');
467464
},
468465
ignoreSelector: ".toc-ignore",
469466
scrollTo: 0

0 commit comments

Comments
 (0)