Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -3052,10 +3052,10 @@ draw_header <- function() {
|
|
| 3052 |
grid.table(raw_table, rows = NULL, theme = ttheme_green)
|
| 3053 |
popViewport()
|
| 3054 |
|
| 3055 |
-
pushViewport(viewport(x = 0.28, y = 0.72, width = 0.
|
| 3056 |
-
pushViewport(viewport(x = 0.72, y = 0.72, width = 0.
|
| 3057 |
-
pushViewport(viewport(x = 0.28, y = 0.50, width = 0.
|
| 3058 |
-
pushViewport(viewport(x = 0.72, y = 0.50, width = 0.
|
| 3059 |
|
| 3060 |
grid.text("Adjusted Score", y = 0.25, gp = gpar(fontsize = 11, fontface = "bold"))
|
| 3061 |
pushViewport(viewport(x = 0.5, y = 0.215, width = 0.58, height = 0.045))
|
|
@@ -3063,11 +3063,14 @@ draw_header <- function() {
|
|
| 3063 |
popViewport()
|
| 3064 |
|
| 3065 |
grid.newpage()
|
|
|
|
|
|
|
|
|
|
| 3066 |
|
| 3067 |
-
pushViewport(viewport(x = 0.28, y = 0.88, width = 0.
|
| 3068 |
-
pushViewport(viewport(x = 0.72, y = 0.88, width = 0.
|
| 3069 |
-
pushViewport(viewport(x = 0.28, y = 0.68, width = 0.
|
| 3070 |
-
pushViewport(viewport(x = 0.72, y = 0.68, width = 0.
|
| 3071 |
|
| 3072 |
if (nrow(MissedCalls) > 0) {
|
| 3073 |
page_chunks <- split(MissedCalls, ceiling(seq_len(nrow(MissedCalls)) / rows_per_page))
|
|
@@ -3081,8 +3084,7 @@ draw_header <- function() {
|
|
| 3081 |
grid.table(page_chunks[[i]], rows = NULL, theme = ttheme_green_small)
|
| 3082 |
popViewport()
|
| 3083 |
|
| 3084 |
-
|
| 3085 |
-
x = 0.5, y = 0.02, gp = grid::gpar(cex = 0.75, col = "grey50"))
|
| 3086 |
}
|
| 3087 |
}
|
| 3088 |
}
|
|
|
|
| 3052 |
grid.table(raw_table, rows = NULL, theme = ttheme_green)
|
| 3053 |
popViewport()
|
| 3054 |
|
| 3055 |
+
pushViewport(viewport(x = 0.28, y = 0.72, width = 0.50, height = 0.30)); print(plot_ball_lhb, newpage = FALSE); popViewport()
|
| 3056 |
+
pushViewport(viewport(x = 0.72, y = 0.72, width = 0.50, height = 0.30)); print(plot_ball_rhb, newpage = FALSE); popViewport()
|
| 3057 |
+
pushViewport(viewport(x = 0.28, y = 0.50, width = 0.50, height = 0.30)); print(plot_strike_lhb, newpage = FALSE); popViewport()
|
| 3058 |
+
pushViewport(viewport(x = 0.72, y = 0.50, width = 0.50, height = 0.30)); print(plot_strike_rhb, newpage = FALSE); popViewport()
|
| 3059 |
|
| 3060 |
grid.text("Adjusted Score", y = 0.25, gp = gpar(fontsize = 11, fontface = "bold"))
|
| 3061 |
pushViewport(viewport(x = 0.5, y = 0.215, width = 0.58, height = 0.045))
|
|
|
|
| 3063 |
popViewport()
|
| 3064 |
|
| 3065 |
grid.newpage()
|
| 3066 |
+
|
| 3067 |
+
grid::grid.text("Data: TrackMan | Report Generated: Coastal Carolina Baseball Analytics",
|
| 3068 |
+
x = 0.5, y = 0.02, gp = grid::gpar(cex = 0.75, col = "grey50"))
|
| 3069 |
|
| 3070 |
+
pushViewport(viewport(x = 0.28, y = 0.88, width = 0.50, height = 0.30)); print(plot_ball_ccu, newpage = FALSE); popViewport()
|
| 3071 |
+
pushViewport(viewport(x = 0.72, y = 0.88, width = 0.50, height = 0.30)); print(plot_ball_opp, newpage = FALSE); popViewport()
|
| 3072 |
+
pushViewport(viewport(x = 0.28, y = 0.68, width = 0.50, height = 0.30)); print(plot_strike_ccu, newpage = FALSE); popViewport()
|
| 3073 |
+
pushViewport(viewport(x = 0.72, y = 0.68, width = 0.50, height = 0.30)); print(plot_strike_opp, newpage = FALSE); popViewport()
|
| 3074 |
|
| 3075 |
if (nrow(MissedCalls) > 0) {
|
| 3076 |
page_chunks <- split(MissedCalls, ceiling(seq_len(nrow(MissedCalls)) / rows_per_page))
|
|
|
|
| 3084 |
grid.table(page_chunks[[i]], rows = NULL, theme = ttheme_green_small)
|
| 3085 |
popViewport()
|
| 3086 |
|
| 3087 |
+
|
|
|
|
| 3088 |
}
|
| 3089 |
}
|
| 3090 |
}
|