-
Notifications
You must be signed in to change notification settings - Fork 12
/
global.R
50 lines (38 loc) · 944 Bytes
/
global.R
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
require(shiny)
require(shinydashboard)
require(shinyjs)
require(leaflet)
require(ggvis)
require(dplyr)
library(RColorBrewer)
require(raster)
require(gstat)
require(rgdal)
require(Cairo)
data(meuse)
coordinates(meuse) = ~x+y
proj4string(meuse) <- CRS("+init=epsg:28992")
meuse <- spTransform(meuse, CRSobj = CRS("+proj=longlat +datum=WGS84 +no_defs"))
data("quakes")
names(quakes)[1:2] <- c('y','x')
coordinates(quakes) <- ~x+y
data('jura')
jura <-jura.val[,c(3,4,7:13,5,6)]
names(jura)[1:2] <- c('x','y')
coordinates(jura) <- ~x+y
data(fulmar)
coordinates(fulmar) <- ~x+y
proj4string(fulmar) <- CRS("+init=epsg:32631")
fulmar <- spTransform(fulmar, CRSobj = CRS("+proj=longlat +datum=WGS84 +no_defs"))
datasets <- list(
'Meuse'=meuse,
'Quakes'=quakes,
'Jura'=jura,
'Fulmar'=fulmar
)
baselayers <- list(
'Meuse'='DarkMatter (CartoDB)',
'Quakes'="Esri.OceanBasemap",
'Jura'='OpenStreetmap',
'Fulmar'='OpenStreetmap'
)