-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.Rhistory
More file actions
512 lines (512 loc) · 18.9 KB
/
.Rhistory
File metadata and controls
512 lines (512 loc) · 18.9 KB
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
theme_classic()+
scico::scale_fill_scico(palette = "batlowW")+
ggtitle(paste(sep="",i," Realisation of log Ni " ))
f=ggplot()+
geom_raster(data=sim_ds ,aes(x=X, y=Y,fill=sim_ds[,2+i+3*n]))+
coord_fixed()+#(paste(".sim",i,sep=""))
theme_classic()+
scico::scale_fill_scico(palette = "batlowW")+
ggtitle(paste(sep="",i," Realisation of log Filler " ))
gridExtra::grid.arrange(a, b,c,d,e,f,nrow=3,ncol=2) #set the number of plots
}
manipulate(allsimulationplot(i,cosim_l,n=20), i=slider(1,20))#100
plot(Y~X, data=ds, bg=Lcode, col=NA, asp=1, pch=22, main="Lcode")
legend("topleft", fill=1:4, legend=levels(factor(ds$Lcode)))
#Now it's interesting to inspect interaction between lithological variables
isSM = ds$Lcode=="SM"
# check that what have we done is meaningful:
summary(isSM)
table(isSM, ds$Lcode)
# create a gstat object
gs_SM = gstat(id="SM", formula=isSM~1, locations = ~X+Y,
data=cbind(ds, isSM))
# empirical variogram
vg_SM = variogram(gs_SM, cutoff=225)
plot(vg_SM)
# model template
vgt_SM = vgm(psill=0.07, model="Exp", range=60, nugget=0.13) # try with a periodic variogram
plot(vg_SM, model=vgt_SM)
# fit
vgm_SM = fit.variogram(vg_SM, model = vgt_SM)
plot(vg_SM, model=vgm_SM)
## grid and kriging
# # recreate gstat object with variogram model
# gs_SM = gstat(id="SM", formula=isSM~1, locations = ~X+Y,
# data=cbind(ds, isSM),
# model=vgt_SM,
# nmax=40
# )
gs_lcode = gstat(id="SM", formula=(Lcode=="SM")~1, locations = ~X+Y,
data=ds,
model=vgt_SM, nmax=60) %>%
gstat(id="FZ", formula=(Lcode=="FZ")~1, locations = ~X+Y,
data=ds,
model=vgt_SM,nmax=60) %>%
gstat(id="UM", formula=(Lcode=="UM")~1, locations = ~X+Y,
data=ds,
model=vgt_SM,nmax=60) %>%
gstat(id="SA", formula=(Lcode=="SA")~1, locations = ~X+Y,
data=ds,
model=vgt_SM,nmax=60)
vg_lcode = variogram(gs_lcode, cutoff=225)
gs_lcode =gstat::fit.lmc(v=vg_lcode, model = vgm_SM,
g = gs_lcode, correct.diagonal = 1.001) # correct.diagonal needed to force positive-definiteness
#plot variograms
plot(vg_lcode, model=gs_lcode$model)
# cockriging
cokr_all = predict(gs_lcode, newdata=xy_grid, debug.level = -1)#,indicators=T
# plot the results
a =ggplot(cokr_all, aes(X, Y))+
geom_raster(aes(fill=SM.pred))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "roma")+ggtitle("SM")
b =ggplot(cokr_all, aes(X, Y))+
geom_raster(aes(fill=FZ.pred))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "roma")+ggtitle("FZ")
c =ggplot(cokr_all, aes(X, Y))+
geom_raster(aes(fill=UM.pred))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "roma")+ggtitle("UM")
d =ggplot(cokr_all, aes(X, Y))+
geom_raster(aes(fill=SA.pred))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "roma")+ggtitle("SA")
gridExtra::grid.arrange(a,b,c,d,nrow=2, ncol=2)
#simulation for Lcodes
#simlcodes = predict(gs_lcode, newdata=xy_grid, debug.level = -1,nsim=100)
# WE use indicators
simlcodes = predict(gs_lcode, newdata=xy_grid, debug.level = -1,indicators=T,nsim=100)
library("manipulate")
all_lcode_simulationplot = function(i,sim_ds){
a=ggplot()+
geom_raster(data=sim_ds,aes( x=X, y=Y,fill=sim_ds[,2+i]))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "bilbao")+
ggtitle(paste(sep="",i," Realisation of SM " ))
b=ggplot()+
geom_raster(data=sim_ds ,aes( x=X, y=Y,fill=sim_ds[,2+i+100]))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "vik")+
ggtitle(paste(sep="",i," Realisation of FZ " ))
c=ggplot()+
geom_raster(data=sim_ds,aes( x=X, y=Y,fill=sim_ds[,2+i+200]))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "lajolla")+
ggtitle(paste(sep="",i," Realisation of UM" ))
d=ggplot()+
geom_raster(data=sim_ds,aes(x=X, y=Y,fill=sim_ds[,2+i+300]))+
coord_fixed()+
theme_classic()+
scico::scale_fill_scico(palette = "bilbao")+
ggtitle(paste(sep="",i," Realisation of SA " ))
gridExtra::grid.arrange(a, b,c,d,nrow=2,ncol=2) #set the number of plots
}
manipulate(all_lcode_simulationplot(i,simlcodes), i=slider(1,100))
save.image("U:/STUDY/blockkurs/2022/Ibadullaev/fu.RData")
save.image("U:/STUDY/blockkurs/2022/Ibadullaev/fu.RData")
save.image("U:/STUDY/blockkurs/2022/Ibadullaev/fu.RData")
## Lcode + Co
(mat = matrix(c(1,2,1,3), ncol=2))
layout(mat, height=c(2,3)) # alternative to par(mfrow=...)
(lvl = abbreviate(levels(ds$Lcode))) # useful later
# rock type vs logCo
plot(log(Co)~Lcode, data=ds, border=1:5)
## Apparently, Co is lowest in FZ, lower in UM,
# average in SM and highest in
# SA. There is a dependence between CO and lithology!
# Given these results + low number of data in Portlandian:
#convert categorical values to integers
ds$lithcode =
ds$Lcode %>% # take the original Lcode
as.integer %>% # convert the categories to integers (==position in the lvl vector)
factor(labels=c("FZ", "SA", "SM", "UM"))
# check the operation was well done
summary(ds$lithcode)
table(ds$lithcode, ds$Lcode)
contrasts(ds$lithcode) <- contr.treatment(levels(ds$lithcode), base=2)
# check the effect: (if necessary, read ?contr.treatment)
ds$lithcode
contr.treatment(levels(ds$lithcode), base=2) %>%
{lm(log(Co)~lithcode, data=ds, contrasts=.)} %>% summary
## multivariate model for Co and lcode together
gs_Co4lcodes = gstat(id="Co", formula=log(Co)~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="FZ", formula=(lithcode=="FZ")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="SA", formula=(lithcode=="SA")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="UM", formula=(lithcode=="UM")~1, locations = ~X+Y,
data=ds, nmax=50)
par(mfrow=c(1,1))
# empirical variogram
vg_Co4lcodes = variogram(gs_Co4lcodes, cutoff=225)
plot(vg_Co4lcodes)
# variogram model
# let's start with the model for Ni, without nugget
# adding the wave model of Tuesday
vgt = vgm(model="Sph", range=100,nugget = 0.2 ,psill=0.05)
# you can also try switching in and out some of the components and slightly move ranges
gs_Co4lcodes = gstat::fit.lmc(v=vg_Co4lcodes, model=vgt, g=gs_Co4lcodes, correct.diagonal = 1.0001)
plot(vg_Co4lcodes, model=gs_Co4lcodes$model)
# vectors of x and y coordinates of the grid nodes,
# covering the range of the data, and with a step
# allowing for interpolation between data
par(mfrow=c(1,1))
plot(Y~X, data=ds, asp=1)
xx = seq(from=rangesXY[1,"X"], to=rangesXY[2,"X"],by=10, length.out = length(ds$X))
## multivariate model for Co and lcode together
gs_Co4lcodes = gstat(id="Co", formula=log(Co)~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="FZ", formula=(lithcode=="FZ")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="SA", formula=(lithcode=="SA")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="UM", formula=(lithcode=="UM")~1, locations = ~X+Y,
data=ds, nmax=50)
par(mfrow=c(1,1))
# empirical variogram
vg_Co4lcodes = variogram(gs_Co4lcodes, cutoff=225)
plot(vg_Co4lcodes)
# variogram model
# let's start with the model for Ni, without nugget
# adding the wave model of Tuesday
vgt = vgm(model="Sph", range=100,nugget = 0.2 ,psill=0.05)
# you can also try switching in and out some of the components and slightly move ranges
gs_Co4lcodes = gstat::fit.lmc(v=vg_Co4lcodes, model=vgt, g=gs_Co4lcodes, correct.diagonal = 1.0001)
plot(vg_Co4lcodes, model=gs_Co4lcodes$model)
# vectors of x and y coordinates of the grid nodes,
# covering the range of the data, and with a step
# allowing for interpolation between data
par(mfrow=c(1,1))
plot(Y~X, data=ds, asp=1)
xx = seq(from=rangesXY[1,"X"], to=rangesXY[2,"X"], length.out = length(ds$X))
yy = seq(from=rangesXY[1,"Y"], to=rangesXY[2,"Y"], length.out = length(ds$X))
# 4 points
# grid definition must be the same in gs object Easting=x, Northing=y
xxyy_grid = expand.grid(X=xx, Y=yy)
points(xxyy_grid,col=2,pch=".")
xv_Co4lcodes = gstat.cv(gs_Co4lcodes)
## multivariate model for Co and lcode together
gs_Co4lcodes = gstat(id="Co", formula=log(Co)~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="FZ", formula=(lithcode=="FZ")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="SA", formula=(lithcode=="SA")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="UM", formula=(lithcode=="UM")~1, locations = ~X+Y,
data=ds, nmax=50)
par(mfrow=c(1,1))
# empirical variogram
vg_Co4lcodes = variogram(gs_Co4lcodes, cutoff=225)
plot(vg_Co4lcodes)
# variogram model
# let's start with the model for Ni, without nugget
# adding the wave model of Tuesday
vgt = vgm(model="Sph", range=100,nugget = 0.2 ,psill=0.05)
# you can also try switching in and out some of the components and slightly move ranges
gs_Co4lcodes = gstat::fit.lmc(v=vg_Co4lcodes, model=vgt, g=gs_Co4lcodes, correct.diagonal = 1.0001)
plot(vg_Co4lcodes, model=gs_Co4lcodes$model)
# vectors of x and y coordinates of the grid nodes,
# covering the range of the data, and with a step
# allowing for interpolation between data
par(mfrow=c(1,1))
plot(Y~X, data=ds, asp=1)
xx = seq(from=rangesXY[1,"X"], to=rangesXY[2,"X"], length.out = length(ds$X))
yy = seq(from=rangesXY[1,"Y"], to=rangesXY[2,"Y"], length.out = length(ds$X))
# 4 points
# grid definition must be the same in gs object Easting=x, Northing=y
xxyy_grid = expand.grid(X=xx, Y=yy)
points(xxyy_grid,col=2,pch=".")
xv_Co4lcodes = gstat.cv(gs_Co4lcodes)
# cokriging
cok_Co4lcodes = predict(gs_Co4lcodes, newdata=xxyy_grid, debug.level = -1)
myplot = function(x, variable, breaks=10, colorscale=RColorBrewer::brewer.pal(11, "Spectral")){
# allow for giving specific breaks or the desired number of breaks
if(length(breaks)==1){
breaks = pretty(x[,variable], n = breaks)
}
# ensure that the color scale has always one color less than breaks
if(length(breaks)-length(colorscale)!=1){
colorscale = colorRampPalette(colorscale)(length(breaks)-1)
}
# plot
cols = colorscale[cut(as.numeric(x[,variable]), breaks = breaks)]
plot(Y~X, data=x, bg=cols, col=NA, asp=1, pch=22)
invisible(list(breaks=breaks, color=colorscale)) # return invisibly the elements of the legend
}
par(mfrow=c(3,3))
#1
myplot(cok_Co4lcodes, variable = "Co.pred");
title("Co.pred")
#2
myplot(cok_Co4lcodes, variable = "FZ.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("FZ.pred")
myplot(cok_Co4lcodes, variable = "SA.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("SA.pred")
myplot(cok_Co4lcodes, variable = "UM.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("UM.pred")
#red is negative or zero, orange 0 and 0.25, yellow transition zone, blue , 1 and 2 dark blue-the highest prob
#3
cok_Co4lcodes$SM.pred = 1 -cok_Co4lcodes$FZ.pred -cok_Co4lcodes$SA.pred-cok_Co4lcodes$UM.pred
myplot(cok_Co4lcodes, variable = "SM.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("SM.pred")
#4
mostProb=cok_Co4lcodes[,c(5,7,9,17)] %>% apply(1, which.max)
cok_Co4lcodes$Lcode.pred =mostProb
myplot(cok_Co4lcodes, variable = "Lcode.pred",breaks =c(0,1.5,2.5,3.5,4.5),col=1:4);
title("The most probable")
myplot(ds, variable = "Lcode",breaks =c(0,1.5,2.5,3.5,4.5),col=1:4);
title("The truth")
# for Ni
## multivariate model for Ni and lcodes together
gs_Ni4lcodes = gstat(id="Ni", formula=log(Ni)~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="FZ", formula=(lithcode=="FZ")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="SA", formula=(lithcode=="SA")~1, locations = ~X+Y,
data=ds, nmax=50) %>%
gstat(id="UM", formula=(lithcode=="UM")~1, locations = ~X+Y,
data=ds, nmax=50)
par(mfrow=c(1,1))
# empirical variogram
vg_Ni4lcodes = variogram(gs_Ni4lcodes, cutoff=225)
plot(vg_Ni4lcodes)
# variogram model
# let's start with the model for Ni, without nugget
# adding the wave model of Tuesday
vgt = vgm(model="Sph", range=100,nugget = 0.2 ,psill=0.05)
# you can also try switching in and out some of the components and slightly move ranges
gs_Ni4lcodes = gstat::fit.lmc(v=vg_Ni4lcodes, model=vgt, g=gs_Ni4lcodes, correct.diagonal = 1.0001)
plot(vg_Ni4lcodes, model=gs_Ni4lcodes$model)
# vectors of x and y coordinates of the grid nodes,
# covering the range of the data, and with a step
# allowing for interpolation between data
par(mfrow=c(1,1))
plot(Y~X, data=ds, asp=1)
xx = seq(from=rangesXY[1,"X"], to=rangesXY[2,"X"], length.out = length(ds$X))
yy = seq(from=rangesXY[1,"Y"], to=rangesXY[2,"Y"], length.out = length(ds$X))
# 4 points
# grid definition must be the same in gs object Easting=x, Northing=y
xxyy_grid = expand.grid(X=xx, Y=yy)
points(xxyy_grid,col=2,pch=".")
xv_Ni4lcodes = gstat.cv(gs_Ni4lcodes)
# cokriging
cok_Ni4lcodes = predict(gs_Ni4lcodes, newdata=xxyy_grid, debug.level = -1)
myplot = function(x, variable, breaks=10, colorscale=RColorBrewer::brewer.pal(11, "Spectral")){
# allow for giving specific breaks or the desired number of breaks
if(length(breaks)==1){
breaks = pretty(x[,variable], n = breaks)
}
# ensure that the color scale has always one color less than breaks
if(length(breaks)-length(colorscale)!=1){
colorscale = colorRampPalette(colorscale)(length(breaks)-1)
}
# plot
cols = colorscale[cut(as.numeric(x[,variable]), breaks = breaks)]
plot(Y~X, data=x, bg=cols, col=NA, asp=1, pch=22)
invisible(list(breaks=breaks, color=colorscale)) # return invisibly the elements of the legend
}
par(mfrow=c(3,3))
#1
myplot(cok_Ni4lcodes, variable = "Ni.pred");
title("Ni.pred")
#2
myplot(cok_Ni4lcodes, variable = "FZ.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("FZ.pred")
myplot(cok_Ni4lcodes, variable = "SA.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("SA.pred")
myplot(cok_Ni4lcodes, variable = "UM.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("UM.pred")
#red is negative or zero, orange 0 and 0.25, yellow transition zone, blue , 1 and 2 dark blue-the highest prob
#3
cok_Ni4lcodes$SM.pred = 1 -cok_Ni4lcodes$FZ.pred -cok_Ni4lcodes$SA.pred-cok_Ni4lcodes$UM.pred
myplot(cok_Ni4lcodes, variable = "SM.pred",breaks =c(-2,0,0.25,0.5,1,2));
title("SM.pred")
#4
mostProb=cok_Ni4lcodes[,c(5,7,9,17)] %>% apply(1, which.max)
cok_Ni4lcodes$Lcode.pred =mostProb
myplot(cok_Ni4lcodes, variable = "Lcode.pred",breaks =c(0,1.5,2.5,3.5,4.5),col=1:4);
title("The most probable")
myplot(ds, variable = "Lcode",breaks =c(0,1.5,2.5,3.5,4.5),col=1:4);
title("The truth")
legend("bottomright",legend = levels(ds$Lcode), col = 1:4)
save.image("U:/STUDY/blockkurs/2022/Ibadullaev/fu.RData")
ds = read.csv("Ibadullaev.csv",stringsAsFactors = T) # load data
colnames(ds) # check cols
ds = ds[,-1] # clip 1st col
colnames(ds) # check cols
ds = read.csv("Ibadullaev.csv",stringsAsFactors = T) # load data
colnames(ds) # check cols
ds = ds[,-1] # clip 1st col
colnames(ds) # check cols
# Import Packages
library("gstat")
library("RColorBrewer")
library("magrittr")
library("ggplot2")
library("manipulate")
library("sp")
library("scico")
library("dplyr")
library("gmGeostats")
library("knitr")
library("rstudioapi")
setwd(dirname(getActiveDocumentContext()$path)) # Set active directory
getwd()
```{r showsimlcodes}
all_lcode_simulationplot(i=30,simlcodes)
allsimulationplot(15,cosim_l,n=20)
allsimulationplot(15,cosim_l,n=20)
#manipulate(simulationplot(i,sim_Co,varname="Co"), i=slider(1,100))
simulationplot(i=30,sim_Co,varname="Co")
#manipulate(simulationplot(i,sim_Ni,varname="Ni"), i=slider(1,100))
simulationplot(i=25,sim_Ni,varname="Ni")
#MULTIDATA CLASSIFICATION
rm(list=ls())
сцв
cwd
cwd()
library(devtools)
#> Loading required package: usethis
View(a)
View(anis_kplot_Ni)
View(anis_kplot_Ni)
a[a!=0]
a = [0, 1, 1, 3]
a = [0, 1, 1, 3]
a = list(0, 1, 1, 3)
a[a==1]
b = a[a==1]
b
b>0
a>0
a[1,2]
a[1:2]
a = matrix(data = a, nrow =2, ncol=3 )
a = matrix(data = c(0, 1, 1, 0,5,6), nrow =2, ncol=3 )
a[a>0]
a
plot(a[a>0])
plot(a)
a = matrix(data = c(0, 1, 1, 0,5,6), nrow =2, ncol=3 )
a
plot(a)
plot(a,c(1:6))
plot(c(1:6),a)
library(devtools)
library(testthat)
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
View(variogram_model)
runApp('U:/VarioBuilder/VarioUI_upload.R')
View(ws)
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
gs_krig()
gs_krig() %>% class()
runApp('U:/VarioBuilder/VarioUI_upload.R')
? isolate()
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
c
f
n
Q
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
string
runApp('U:/VarioBuilder/VarioUI_upload.R')
paste0(input$varchem,".pred")
paste0(input$varchem(),".pred")
input$var_chem
runApp('U:/VarioBuilder/VarioUI_upload.R')
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
?xlim()
runApp('U:/VarioBuilder/VarioUI_upload.R')
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
gc()
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
View(kriging.res)
View(kriging.res)
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
View(kriging.res)
runApp('U:/VarioBuilder/VarioUI_upload.R')
View(kriging.res)
?waiter::Waiter
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
>plotly::renderPlotly
?plotly::renderPlotly
?gstat
?geomGeostat::gstat
? fit_lmc
fit_vgm
?fit_vgm
??fit_vgm
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
?plotly::renderPlotly
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
library(shiny); runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
runApp('U:/VarioBuilder/VarioUI_upload.R')
source("U:/STUDY/Metadata/task0.R", echo=TRUE)
setwd("U:/STUDY/Metadata")
source("U:/STUDY/Metadata/task0.R", echo=TRUE)
fig
f0