Skip to content

Commit d0bb434

Browse files
committed
added goemnet
1 parent 27b34b9 commit d0bb434

22 files changed

+327
-41
lines changed

Diff for: geomnet.Rmd

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "ggplot2 extensions: geomnet"
3+
---
4+
5+
### geomnet
6+
<https://github.com/sctyner/geomnet>
7+
8+
geomnet implements network visualizations in ggplot2 via geom_net.
9+
10+
```{r message=FALSE,warning=FALSE}
11+
# Example from https://github.com/sctyner/geomnet
12+
library(ggplot2)
13+
library(geomnet)
14+
15+
data(blood)
16+
17+
ggplot(data = blood$edges, aes(from_id = from, to_id = to)) +
18+
geom_net(vertices=blood$vertices, aes(colour=..type..)) +
19+
theme_net()
20+
```

Diff for: geomnet.html

+228
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
<!DOCTYPE html>
2+
3+
<html xmlns="http://www.w3.org/1999/xhtml">
4+
5+
<head>
6+
7+
<meta charset="utf-8">
8+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9+
<meta name="generator" content="pandoc" />
10+
11+
12+
13+
<title>ggplot2 extensions: geomnet</title>
14+
15+
<script src="libs/jquery-1.11.0/jquery.min.js"></script>
16+
<meta name="viewport" content="width=device-width, initial-scale=1" />
17+
<link href="libs/bootstrap-3.3.1/css/cosmo.min.css" rel="stylesheet" />
18+
<script src="libs/bootstrap-3.3.1/js/bootstrap.min.js"></script>
19+
<script src="libs/bootstrap-3.3.1/shim/html5shiv.min.js"></script>
20+
<script src="libs/bootstrap-3.3.1/shim/respond.min.js"></script>
21+
22+
<!-- Styles for this site -->
23+
<meta name="viewport" content="width=device-width, initial-scale=1">
24+
<link href="css/styles.css" rel="stylesheet">
25+
26+
27+
<!-- Polyfill JS -->
28+
<script src="js/polyfill.js"></script>
29+
30+
<style type="text/css">code{white-space: pre;}</style>
31+
<link rel="stylesheet"
32+
href="libs/highlight/textmate.css"
33+
type="text/css" />
34+
<script src="libs/highlight/highlight.js"></script>
35+
<style type="text/css">
36+
pre:not([class]) {
37+
background-color: white;
38+
}
39+
</style>
40+
<script type="text/javascript">
41+
if (window.hljs && document.readyState && document.readyState === "complete") {
42+
window.setTimeout(function() {
43+
hljs.initHighlighting();
44+
}, 0);
45+
}
46+
</script>
47+
48+
49+
50+
</head>
51+
52+
<body>
53+
54+
<style type = "text/css">
55+
.main-container {
56+
max-width: 940px;
57+
margin-left: auto;
58+
margin-right: auto;
59+
}
60+
code {
61+
color: inherit;
62+
background-color: rgba(0, 0, 0, 0.04);
63+
}
64+
img {
65+
max-width:100%;
66+
height: auto;
67+
}
68+
</style>
69+
<div class="container-fluid main-container">
70+
71+
<!--html_preserve-->
72+
73+
<div class="header">
74+
<nav class="navbar">
75+
<h3 class="navbar-left"><strong>ggplot2</strong> extensions</h3>
76+
<ul class="nav nav-pills navbar-right">
77+
<li role="presentation" id="nav-home"><a href="index.html">Home</a></li>
78+
<li role="presentation" id="nav-showcase"><a href="ggiraph.html">Extensions</a></li>
79+
<li role="presentation" id="nav-github"><a href="https://github.com/ggplot2-exts/ggplot2-exts.github.io">GitHub</a></li>
80+
</ul>
81+
</nav>
82+
</div>
83+
84+
<div class="showcase-header">
85+
86+
<div id = "showcase-intro">
87+
ggplot2 now has an official extension mechanism. This means that others can now easily create their own stats, geoms and positions, and provide them in other packages. This should allow the ggplot2 community to flourish, even as less development work happens in ggplot2 itself. This page showcases these extensions.
88+
</div>
89+
90+
<div class="container-fluid">
91+
<div class="row">
92+
93+
<div class="col-sm-4">
94+
<div class="list-group">
95+
<a href="ggiraph.html" class="list-group-item">
96+
<h5 class="list-group-item-heading">ggiraph</h5>
97+
<p class="list-group-item-text">Make ggplot interactive</p>
98+
</a>
99+
<a href="ggstance.html" class="list-group-item">
100+
<h5 class="list-group-item-heading">ggstance</h5>
101+
<p class="list-group-item-text">Horizontal versions of ggplot2 geoms</p>
102+
</a>
103+
104+
<a href="ggalt.html" class="list-group-item">
105+
<h5 class="list-group-item-heading">ggalt</h5>
106+
<p class="list-group-item-text">Extra coordinate systems, geoms & stats</p>
107+
</a>
108+
109+
<a href="ggforce.html" class="list-group-item">
110+
<h5 class="list-group-item-heading">ggforce</h5>
111+
<p class="list-group-item-text">Accelarating ggplot2</p>
112+
</a>
113+
114+
<a href="ggrepel.html" class="list-group-item">
115+
<h5 class="list-group-item-heading">ggrepel</h5>
116+
<p class="list-group-item-text">Repel overlapping text labels</p>
117+
</a>
118+
119+
<a href="ggraph.html" class="list-group-item">
120+
<h5 class="list-group-item-heading">ggraph</h5>
121+
<p class="list-group-item-text">Plot graph-like data structures</p>
122+
</a>
123+
124+
<a href="ggpmisc.html" class="list-group-item">
125+
<h5 class="list-group-item-heading">ggpmisc</h5>
126+
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127+
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
133+
134+
</div> <!-- list-group -->
135+
136+
</div> <!-- col-sm-4 -->
137+
138+
<div id="geomnet" class="col-sm-8">
139+
<h3>geomnet</h3>
140+
<p><a href="https://github.com/sctyner/geomnet" class="uri">https://github.com/sctyner/geomnet</a></p>
141+
<p>geomnet implements network visualizations in ggplot2 via geom_net.</p>
142+
<pre class="r"><code># Example from https://github.com/sctyner/geomnet
143+
library(ggplot2)
144+
library(geomnet)
145+
146+
data(blood)
147+
148+
ggplot(data = blood$edges, aes(from_id = from, to_id = to)) +
149+
geom_net(vertices=blood$vertices, aes(colour=..type..)) +
150+
theme_net()</code></pre>
151+
<p><img src="geomnet_files/figure-html/unnamed-chunk-1-1.png" title="" alt="" width="576" /></p>
152+
</div> <!-- col-sm-8 -->
153+
154+
</div> <!-- row -->
155+
</div>
156+
157+
</div> <!-- showcase-header -->
158+
159+
160+
161+
<!--/html_preserve-->
162+
163+
164+
165+
166+
167+
168+
169+
</div> <!-- page-body -->
170+
171+
<footer>
172+
<div>&nbsp;</div>
173+
<div>&nbsp;</div>
174+
<div class="text-muted">
175+
Design inspired by <a href="http://www.htmlwidgets.org/index.html" target="_blank">Ramnath Vaidyanathan, Kenton Russell, and RStudio, Inc</a>.
176+
</div>
177+
<div class="text-muted">
178+
Maintained by <a href="http://www.danielemaasit.com" target="_blank">Daniel Emaasit</a>.
179+
</div>
180+
<div class="text-muted">
181+
Copyright &copy; 2016 The R Community.
182+
</div>
183+
</footer>
184+
185+
<script>
186+
// manage active state of headres and navigation based on current page
187+
188+
$(document).ready(function () {
189+
190+
// compute name of page
191+
href = window.location.pathname;
192+
href = href.substr(href.lastIndexOf('/') + 1);
193+
if (href == "")
194+
href = "index.html";
195+
196+
// main navigation and headers
197+
if (href.startsWith("index")) {
198+
$('#nav-home').addClass('active');
199+
$('.title').addClass('hidden');
200+
} else if (href.startsWith("showcase")) {
201+
$('#nav-showcase').addClass('active');
202+
$("#page-body").detach().appendTo('#showcase-body');
203+
$('.showcase-header').removeClass('hidden');
204+
$('.title').addClass('hidden');
205+
} else if (href.startsWith("develop")) {
206+
$('#nav-develop').addClass('active');
207+
}
208+
209+
// submenu navigation (used by showcase and develop)
210+
$('.list-group a[href="' + href + '"]').addClass('active');
211+
});
212+
213+
</script>
214+
215+
</div>
216+
217+
<script>
218+
219+
// add bootstrap table styles to pandoc tables
220+
$(document).ready(function () {
221+
$('tr.header').parent('thead').parent('table').addClass('table table-condensed');
222+
});
223+
224+
</script>
225+
226+
227+
</body>
228+
</html>

Diff for: geomnet_files/figure-html/unnamed-chunk-1-1.png

61.1 KB
Loading

Diff for: ggalt.html

+7
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
125125
<h5 class="list-group-item-heading">ggpmisc</h5>
126126
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127127
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
128133

129134
</div> <!-- list-group -->
130135

@@ -173,6 +178,8 @@ <h3>ggalt</h3>
173178

174179

175180

181+
182+
176183
</div> <!-- page-body -->
177184

178185
<footer>

Diff for: ggforce.html

+7
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
125125
<h5 class="list-group-item-heading">ggpmisc</h5>
126126
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127127
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
128133

129134
</div> <!-- list-group -->
130135

@@ -179,6 +184,8 @@ <h3>ggforce</h3>
179184

180185

181186

187+
188+
182189
</div> <!-- page-body -->
183190

184191
<footer>

Diff for: ggiraph.html

+7-2
Large diffs are not rendered by default.

Diff for: ggpmisc.html

+7
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
125125
<h5 class="list-group-item-heading">ggpmisc</h5>
126126
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127127
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
128133

129134
</div> <!-- list-group -->
130135

@@ -170,6 +175,8 @@ <h3>ggpmisc</h3>
170175

171176

172177

178+
179+
173180
</div> <!-- page-body -->
174181

175182
<footer>

Diff for: ggraph.html

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
125125
<h5 class="list-group-item-heading">ggpmisc</h5>
126126
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127127
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
128133

129134
</div> <!-- list-group -->
130135

Diff for: ggrepel.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
125125
<h5 class="list-group-item-heading">ggpmisc</h5>
126126
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127127
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
128133

129134
</div> <!-- list-group -->
130135

@@ -172,7 +177,6 @@ <h3>ggrepel</h3>
172177

173178

174179

175-
176180
</div> <!-- page-body -->
177181

178182
<footer>

Diff for: ggstance.Rmd

+5
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ ggplot(mpg, aes(class, hwy, fill = factor(cyl))) +
2020
ggplot(mpg, aes(class, hwy, fill = factor(cyl))) +
2121
geom_boxplot() +
2222
coord_flip()
23+
24+
# In ggstance, you supply aesthetics in their natural order:
25+
# Horizontal with ggstance
26+
ggplot(mpg, aes(hwy, class, fill = factor(cyl))) +
27+
geom_boxploth()
2328
```

Diff for: ggstance.html

+12
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
125125
<h5 class="list-group-item-heading">ggpmisc</h5>
126126
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
127127
</a>
128+
129+
<a href="geomnet.html" class="list-group-item">
130+
<h5 class="list-group-item-heading">geomnet</h5>
131+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
132+
</a>
128133

129134
</div> <!-- list-group -->
130135

@@ -147,6 +152,11 @@ <h3>ggstance</h3>
147152
geom_boxplot() +
148153
coord_flip()</code></pre>
149154
<p><img src="ggstance_files/figure-html/unnamed-chunk-1-2.png" title="" alt="" width="576" /></p>
155+
<pre class="r"><code># In ggstance, you supply aesthetics in their natural order:
156+
# Horizontal with ggstance
157+
ggplot(mpg, aes(hwy, class, fill = factor(cyl))) +
158+
geom_boxploth()</code></pre>
159+
<p><img src="ggstance_files/figure-html/unnamed-chunk-1-3.png" title="" alt="" width="576" /></p>
150160
</div> <!-- col-sm-8 -->
151161

152162
</div> <!-- row -->
@@ -162,6 +172,8 @@ <h3>ggstance</h3>
162172

163173

164174

175+
176+
165177
</div> <!-- page-body -->
166178

167179
<footer>

Diff for: ggstance_files/figure-html/unnamed-chunk-1-3.png

38.5 KB
Loading

Diff for: images/carousel-geomnet.png

47 KB
Loading

Diff for: images/carousel-ggalt.png

88.3 KB
Loading

Diff for: images/carousel-ggforce.png

39.7 KB
Loading

Diff for: images/carousel-ggpmisc.png

55.8 KB
Loading

Diff for: images/carousel-ggrepel.png

42.7 KB
Loading

Diff for: images/carousel-ggstance.png

384 Bytes
Loading

Diff for: images/carousel-ggstance1.png

31.4 KB
Loading

Diff for: include/before_body.html

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ <h5 class="list-group-item-heading">ggraph</h5>
5555
<h5 class="list-group-item-heading">ggpmisc</h5>
5656
<p class="list-group-item-text">Miscellaneous extensions to ggplot2</p>
5757
</a>
58+
59+
<a href="geomnet.html" class="list-group-item">
60+
<h5 class="list-group-item-heading">geomnet</h5>
61+
<p class="list-group-item-text">Network visualizations in ggplot2</p>
62+
</a>
5863

5964
</div> <!-- list-group -->
6065

0 commit comments

Comments
 (0)