-
Notifications
You must be signed in to change notification settings - Fork 0
/
readdata.R
37 lines (32 loc) · 1.21 KB
/
readdata.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
library(flexdashboard)
library(readxl)
library(tidyverse)
library(crosstalk)
library(plotly)
library(viridis)
Sys.setlocale("LC_ALL", 'pt_BR.UTF-8')
fgsc <- read_excel("fgsc-dat9.xlsx") %>%
select(1:9)
fgsc <- fgsc %>%
filter(TRI_genotype != "15-ADON, NIV")
library(plyr)
fgsc$FGSC <- revalue(fgsc$FGSC,
c("Fusarium vorosii" = "F. vorosii",
"Fusarium nepalense" = "F. nepalense",
"Fusarium meridionale" = "F. meridionale",
"Fusarium graminearum" = "F. graminearum",
"Fusarium cortaderiae" = "F. cortaderiae",
"Fusarium boothii" = "F. boothii",
"Fusarium asiaticum" = "F. asiaticum"))
fgsc$TRI_genotype <- revalue(fgsc$TRI_genotype,
c("DON/ZEA" = "DON",
"N-15-ADON" = "15-ADON",
"N-15ADON" = "15-ADON",
"s3-ADON" = "3-ADON",
"NX-2/3-ADON" = "NX-2",
"NX2" = "NX-2"))
library(crosstalk)
library(leaflet)
library(leaflet.extras)
library(DT)
sd <- SharedData$new(fgsc)