Spaces:
Running
Running
:robot:
Browse files
app.R
CHANGED
@@ -44,6 +44,10 @@ ui <- page_sidebar(
|
|
44 |
col_widths = c(11, 1)),
|
45 |
fill = FALSE
|
46 |
),
|
|
|
|
|
|
|
|
|
47 |
layout_columns(
|
48 |
card(maplibreOutput("map")),
|
49 |
card(includeMarkdown("## Plot"),
|
@@ -162,7 +166,7 @@ server <- function(input, output, session) {
|
|
162 |
|
163 |
|
164 |
y_axis <- colnames(df)[!colnames(df) %in% colnames(svi)]
|
165 |
-
chart2 <- df |>
|
166 |
rename(social_vulnerability = y_axis) |>
|
167 |
ggplot(aes(social_vulnerability)) +
|
168 |
geom_density(fill = "darkred") +
|
@@ -173,6 +177,9 @@ server <- function(input, output, session) {
|
|
173 |
|
174 |
# We need to somehow trigger this df to update the map.
|
175 |
data$df <- df
|
|
|
|
|
|
|
176 |
}
|
177 |
|
178 |
})
|
|
|
44 |
col_widths = c(11, 1)),
|
45 |
fill = FALSE
|
46 |
),
|
47 |
+
|
48 |
+
textOutput("agent"),
|
49 |
+
|
50 |
+
|
51 |
layout_columns(
|
52 |
card(maplibreOutput("map")),
|
53 |
card(includeMarkdown("## Plot"),
|
|
|
166 |
|
167 |
|
168 |
y_axis <- colnames(df)[!colnames(df) %in% colnames(svi)]
|
169 |
+
chart2 <- df |>
|
170 |
rename(social_vulnerability = y_axis) |>
|
171 |
ggplot(aes(social_vulnerability)) +
|
172 |
geom_density(fill = "darkred") +
|
|
|
177 |
|
178 |
# We need to somehow trigger this df to update the map.
|
179 |
data$df <- df
|
180 |
+
} else {
|
181 |
+
output$agent <- renderText(response$agent)
|
182 |
+
|
183 |
}
|
184 |
|
185 |
})
|