Spaces:
Runtime error
Runtime error
Update app.R
Browse files
app.R
CHANGED
|
@@ -288,6 +288,14 @@ data <- is_barrel(MLBC) %>%
|
|
| 288 |
|
| 289 |
# UI definition
|
| 290 |
ui <- fluidPage(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
titlePanel(NULL, windowTitle = "Baseball Stats Visualization"),
|
| 292 |
|
| 293 |
sidebarLayout(
|
|
@@ -345,7 +353,9 @@ ui <- fluidPage(
|
|
| 345 |
),
|
| 346 |
|
| 347 |
mainPanel(
|
| 348 |
-
|
|
|
|
|
|
|
| 349 |
)
|
| 350 |
)
|
| 351 |
)
|
|
@@ -565,7 +575,7 @@ server <- function(input, output,session) {
|
|
| 565 |
padding = unit(c(20, 20, 20, 20), "points") # top, right, bottom, left margins
|
| 566 |
)
|
| 567 |
)
|
| 568 |
-
}, height = 1000, width = 1000, res = 96)
|
| 569 |
}
|
| 570 |
|
| 571 |
# Run the app
|
|
|
|
| 288 |
|
| 289 |
# UI definition
|
| 290 |
ui <- fluidPage(
|
| 291 |
+
tags$head(
|
| 292 |
+
tags$style(HTML("
|
| 293 |
+
.plot-container {
|
| 294 |
+
width: 1000px !important;
|
| 295 |
+
height: 1000px !important;
|
| 296 |
+
}
|
| 297 |
+
"))
|
| 298 |
+
),
|
| 299 |
titlePanel(NULL, windowTitle = "Baseball Stats Visualization"),
|
| 300 |
|
| 301 |
sidebarLayout(
|
|
|
|
| 353 |
),
|
| 354 |
|
| 355 |
mainPanel(
|
| 356 |
+
div(class = "plot-container",
|
| 357 |
+
plotOutput("statsPlot")
|
| 358 |
+
)
|
| 359 |
)
|
| 360 |
)
|
| 361 |
)
|
|
|
|
| 575 |
padding = unit(c(20, 20, 20, 20), "points") # top, right, bottom, left margins
|
| 576 |
)
|
| 577 |
)
|
| 578 |
+
}, height = 1000, width = 1000, res = 96,pointsize = 12,asp = 1)
|
| 579 |
}
|
| 580 |
|
| 581 |
# Run the app
|