Skip to content

Commit 4c73b24

Browse files
committed
updated figures
Former-commit-id: d954408
1 parent 2151dde commit 4c73b24

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

vignettes/world-great-circles.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ plot(s)
107107
points(p, col = "red")
108108
```
109109

110-
![plot of chunk Plotting points](figure/Plotting points.png)
110+
![plot of chunk Plotting points](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/Plotting points.png)
111111

112112
## Joining the dots
113113

@@ -122,7 +122,7 @@ segments(x0 = rep(coordinates(p[1,])[1], n), y0 = rep(coordinates(p[1,])[2], n),
122122
x1 = coordinates(p)[,1], y1 = coordinates(p)[,2])
123123
```
124124

125-
![plot of chunk Plotting segments](figure/Plotting segments.png)
125+
![plot of chunk Plotting segments](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/Plotting segments.png)
126126

127127
(Incidentally, isn't the use of `segments` here rather clunky - any suggestions
128128
of a more elegant way to do this welcome.)
@@ -153,7 +153,7 @@ for(i in 1:length(p)){
153153
}
154154
```
155155

156-
![plot of chunk Plotting great circles 1](figure/Plotting great circles 1.png)
156+
![plot of chunk Plotting great circles 1](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/Plotting great circles 1.png)
157157

158158
Fantastic. Now we have great circle lines represented on a
159159
map with a [geographic coordinate system (CRS)](http://en.wikipedia.org/wiki/Geographic_coordinate_system)
@@ -199,7 +199,7 @@ for(i in 1:length(p)){
199199
}
200200
```
201201

202-
![plot of chunk Beautifying](figure/Beautifying.png)
202+
![plot of chunk Beautifying](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/Beautifying.png)
203203

204204
```r
205205
par(bg = 'white')
@@ -219,7 +219,7 @@ m <- ggplot(s, aes(x=long, y=lat, group=group)) +
219219
m
220220
```
221221

222-
![plot of chunk ggplot world 1](figure/ggplot world 1.png)
222+
![plot of chunk ggplot world 1](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/ggplot world 1.png)
223223

224224
When we add the lines in projected maps (i.e. with a Euclidean coordinate system)
225225
based solely on origins and destinations, this works fine, but
@@ -245,7 +245,7 @@ ggplot() + geom_polygon(data = s,aes(x=long, y=lat, group=group),
245245
geom_segment(aes(x = p1[,1], y = p1[,2], xend = p2[,1], yend = p2[,2]))
246246
```
247247

248-
![plot of chunk Adding world lines ggplot2 style](figure/Adding world lines ggplot2 style.png)
248+
![plot of chunk Adding world lines ggplot2 style](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/Adding world lines ggplot2 style.png)
249249

250250
## Adding great circle lines to ggplot2 maps
251251

@@ -289,7 +289,7 @@ ggplot() + geom_polygon(data = s, aes(x=long, y=lat, group=group),
289289
theme(panel.background = element_rect(fill = 'lightblue'))
290290
```
291291

292-
![plot of chunk polygon paths ggplo2](figure/polygon paths ggplo2.png)
292+
![plot of chunk polygon paths ggplo2](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/polygon paths ggplo2.png)
293293

294294
## Changing projection in ggplot
295295

@@ -308,7 +308,7 @@ m <- last_plot()
308308
m + coord_map()
309309
```
310310

311-
![plot of chunk ggplot2 projections](figure/ggplot2 projections1.png)
311+
![plot of chunk ggplot2 projections](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/ggplot2 projections1.png)
312312

313313
```r
314314
# remove fill as this clearly causes problems:
@@ -319,7 +319,7 @@ m <- ggplot() + geom_path(data = s, aes(x=long, y=lat, group=group), colour="bla
319319
m + coord_map("ortho", orientation=c(41, -74, 0)) # for ortho maps
320320
```
321321

322-
![plot of chunk ggplot2 projections](figure/ggplot2 projections2.png)
322+
![plot of chunk ggplot2 projections](https://raw.githubusercontent.com/Robinlovelace/Creating-maps-in-R/master/figure/ggplot2 projections2.png)
323323

324324
## Conclusion
325325

0 commit comments

Comments
 (0)