-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.Rmd
165 lines (80 loc) · 3.3 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
---
Title: "A repository of R graphics with their associated code"
Author: "Integrative Ecology Group"
output:
md_document:
variant: markdown_github
toc: yes
toc_depth: 5
---
# A repository of R graphics with their associated code
This repository intends to be a catalog of figures made in [our group](http://ebd10.ebd.csic.es/ebd10/Home.html) with the associated R code used to produce them. Scroll down to browse the available figures. Clicking on any of them will take you to the source code used to produce it.
**CONTRIBUTING**
See [here](https://github.com/PJordano-Lab/R-figures/blob/master/contributing.md) for information on how to contribute new figures and code.
**OTHER REPOS WITH R CODE TO PRODUCE FIGURES**
- [R graph catalog](http://shiny.stat.ubc.ca/r-graph-catalog/)
- [The R graph gallery](http://www.r-graph-gallery.com/)
- [R graph gallery](http://rgraphgallery.blogspot.com/)
- [Cookbook for R: Graphs](http://www.cookbook-r.com/Graphs/)
- [A compendium of clean graphs in R](http://shinyapps.org/apps/RGraphCompendium/index.php)
- [Graphical data analysis with R](http://www.gradaanwr.net/)
```{r knitr_setup, include=FALSE, cache=FALSE}
library(knitr)
opts_chunk$set(echo = FALSE, comment = NA, results = 'asis')
```
```{r insert_function}
insert <- function(title, path2rmd, fig.width = 400, plot.number = 1){
if (missing(title) | missing(path2rmd)) {
cat("You must provide a title and the path to the Rmarkdown source document (e.g. 'Networks/bipartite_network.Rmd')")
} else {
path <- unlist(strsplit(path2rmd, "/"))
folder <- path[1]
fig <- gsub("\\.Rmd", "", path[2])
cat('#### ', title, '\n\n',
'[<img src="figures/', fig, '-plot-', plot.number, '.png" width="', fig.width, '">]',
'(http://htmlpreview.github.io/?https://raw.github.com/PJordano-Lab/R-figures/blob/master/',
folder, '/', fig, '.html)',
sep = "")
}
}
```
# FIGURE THEMES
## General stats
```{r}
insert("Sankey diagram for demographic transitions", "General/sankey.Rmd")
```
```{r}
insert("Survival curves (ggplot)", "General/survival_ggplot.Rmd")
```
## Multipanel plots
```{r}
insert("ggplot slopegraph multipanel", "Multipanel/slopegraph_multipanel.Rmd")
```
## Multivariate
## Time series
## Spatial / Maps
```{r}
insert("Topographic map", "Spatial/topomap.Rmd")
```
```{r}
insert("Plotting dispersal kernels", "Spatial/dispkernels.Rmd")
```
```{r}
insert("Plotting expected vs empirical distances", "Spatial/ExpectedvsEmpirical_kernels.Rmd")
```
## Networks
```{r}
insert("Plotting effectiveness landscapes", "Networks/effectiveness.Rmd")
```
More information on effectiveness landscapes is in [Pedro Jordano Lab Pages @GitHub](http://pedroj.github.io).
```{r}
insert("Assignments network", "Networks/assig_network.Rmd")
```
```{r}
insert("Gene flow", "Networks/GeneFlow.Rmd")
```
Licence
--------
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a>
Creative Commons License
This work and all other materials under https://github.com/PJordano-Lab/ are licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/legalcode).