-
Notifications
You must be signed in to change notification settings - Fork 3
/
table_ui.Rd
61 lines (48 loc) · 1.14 KB
/
table_ui.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/table_module.R
\name{table_ui}
\alias{table_ui}
\alias{table_server}
\title{NOAA table module}
\usage{
table_ui(id, download = NULL)
table_server(id, NOAA, variable)
}
\arguments{
\item{id}{Namespace id shiny module.}
\item{download}{Add download button.}
\item{NOAA}{Reactive value for the dataset containing the locations
coordinates.}
\item{variable}{Reactivevalues for selected variable information.}
}
\value{
Shiny module.
}
\description{
This shiny module (\code{table_ui()} + \code{table_server()}) visualizes the loaded
and filtered data in a table format.
}
\examples{
if (interactive()) {
# run table module stand-alone
library(oceanexplorer)
library(shiny)
# data
NOAA <- get_NOAA("oxygen", 1, "annual")
# coordinates
points <- filter_NOAA(NOAA, 1, list(lon = c(-160, -120), lat = c(11, 12)))
# gui
ui <- fluidPage(table_ui("table"))
# server
server <-function(input, output, session) {
# table
output_table <- table_server(
"table",
reactive(points),
reactiveValues(parm = "temperature", spat = 1, temp = "annual")
)
}
# run app
shinyApp(ui, server)
}
}