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
| ui2 <- dashboardPage( dashboardHeader( title = logo_blue_gradient, tags$li(class = "dropdown", uiOutput("S") ) ), dashboardSidebar( sidebarMenu( menuItem("graphics", tabName = "graphics", icon = icon("dashboard")), menuItem("table", icon = icon("th"), tabName = "table"), menuItem("map", tabName = "map", icon = icon("map-marker",lib = "glyphicon")), menuItem("predict", icon = icon("flag",lib = "glyphicon"), tabName = "predict"), menuItem("feedback", tabName = "feedback", icon = icon("pencil",lib = "glyphicon")), menuItem("user",tabName = "user",icon = icon("user",lib = "glyphicon")), menuItem("info", icon = icon("header",lib = "glyphicon"), tabName = "info") ) ), dashboardBody( shinyDashboardThemes( theme = "blue_gradient" ), includeCSS("www/style.css"), fluidRow( tabItems( tabItem(tabName = "graphics", sidebarLayout( position = "right", sidebarPanel( h4("select what you want here"), selectInput("select", h3("Select city"), choices = list("广州" = 'guangzhou', "南昌" = 'nanchang', "北京" = 'beijing'), selected = 2), dateInput("date", h3("Date input"), value = "2018-03-03"), selectInput("select_theme", h3("Select theme"), choices = list("dust" = "dust", "earth" = "earth","light" = "light", "pale" ="pale" , "fresh" = "fresh","chalk"="chalk","light"="light","sky"="sky","grass"="grass","grape"="grape"), selected = "fresh") ,bookmarkButton(id = "bookmark") ), mainPanel( plotOutput("plot_point")%>% withSpinner(type=4), plotOutput("plot_line")%>% withSpinner(type=4), plotOutput("plot_bar")%>% withSpinner(type=4) ) ) ), tabItem(tabName = "table", sidebarLayout( position = "right", sidebarPanel( h4("select what you want here"), selectInput("select2", h3("Select city"), choices = list("广州" = 'guangzhou', "南昌" = 'nanchang', "北京" = 'beijing'), selected = 2), dateInput("date2", h3("Date input"), value = "2018-03-03") ,downloadButton("downloadData", "Download"), checkboxGroupInput("show_vars", "Columns in tables to show:", c("date"="date","highDegree"="highDegree","lowDegree"="lowDegree", "weather"="weather","windDirection"="windDirection"), selected = c("date"="date","highDegree"="highDegree","lowDegree"="lowDegree", "weather"="weather","windDirection"="windDirection") )), mainPanel( DT::dataTableOutput('table')%>% withSpinner(type=4) ) ) ), tabItem(tabName = "map", sidebarPanel( h5("basic geo information"), textOutput("geo") ,h5("temparature now") ,textOutput("wea") ), mainPanel( leafletOutput("map")%>% withSpinner(type=4) ) ), tabItem(tabName = "predict", sidebarLayout( sidebarPanel( selectInput("select4", h3("Select city"), choices = list("广州" = 1, "南昌" = 2, "北京" = 3), selected = 2), checkboxGroupInput("show_vars2", "Columns in tables to show:", c("time"="time","temperature"="temperature","humidity"="humidity"),selected = c("time"="time","temperature"="temperature","humidity"="humidity")) ), mainPanel( DT::dataTableOutput('table4')%>% withSpinner(type=4) ) ) ), tabItem(tabName = "feedback", sidebarLayout( sidebarPanel( h5("Thanks for giving us valuable feedback"), actionButton("reset", "Reset text"), actionButton("submit", "submit"), material_button( input_id = "example_button", label = "BUTTON", depth = 10 ) ), mainPanel( aceEditor("ace",fontSize = 20,autoComplete = "enabled",theme="ambiance") ) ) ), tabItem(tabName = "user", uiOutput("user-info") ), tabItem(tabName = "info", sidebarLayout( sidebarPanel("information", h5("maintainer: Ralph Haide"), h5("version: 1.3.0"), h6("contact me:"), a("ralphshaides@gmail.com") ), mainPanel( img(src="https://s1.ax1x.com/2018/04/15/CeieW6.png",width=200,height=200), br(), h2("Haide",aign="center"), h3("a simple weather application powered by shiny",align="left"), h5("technology used: ",",",a("R",href="https://www.r-project.org/"),",", a("shiny",href="http://shiny.rstudio.com/") ,",", "Crawler" ,",", a("ggplot2",href="http://ggplot2.org/")), h5("library used:", a("shiny",href="http://shiny.rstudio.com/") , a("DT"), a("ggplot2",href="http://ggplot2.org/"), a("ggthemr",href="https://cran.r-project.org/web/packages/ggthemes/index.html"), a("plyr",href="https://cran.r-project.org/web/packages/plyr/index.html"), a("rvest",href="https://cran.r-project.org/web/packages/rvest/index.html"),a("weatherR",href="https://cran.r-project.org/web/packages/weatherr/index.html")) ,includeMarkdown("log.md") ) ) ) )) ) )
|
Comment