TimStats commited on
Commit
314f2ec
·
verified ·
1 Parent(s): 8e6ac99

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +6 -6
app.R CHANGED
@@ -480,7 +480,7 @@ server <- function(input, output,session) {
480
  geom_tile(aes(x = percentile/2, width = percentile, fill = color),
481
  height = 0.7) +
482
  annotate("segment", x = c(10, 50, 90), xend = c(10, 50, 90),
483
- y = 0, yend = 15.35,
484
  color = c("white"),
485
  linewidth = 1.5, alpha = 0.5) +
486
  geom_segment(aes(x = -2, xend = -16,
@@ -492,13 +492,13 @@ server <- function(input, output,session) {
492
  yend = as.numeric(factor(metric, levels = rev(metric))) - 0.3),
493
  linetype = "longdash", color = "#399098", size = 1) +
494
  geom_text(aes(x = -3, label = metric),
495
- hjust = 1, size = 6, family = "roboto") +
496
  geom_text(aes(x = 103, label = value),
497
- hjust = 0, size = 6, family = "roboto") +
498
  geom_point(aes(x = percentile, color = "white", fill = color),
499
  size = 12, shape = 21, stroke = 3) +
500
  geom_text(aes(x = percentile, label = percentile),
501
- size = 6, color = "white", fontface = "bold", family = "roboto") +
502
  scale_x_continuous(limits = c(-16, 113), expand = c(0, 0)) +
503
  scale_fill_identity() +
504
  scale_color_identity() +
@@ -530,7 +530,7 @@ server <- function(input, output,session) {
530
  title_grob <- textGrob(paste0(input$player, " - ", pos,
531
  "\n BBE - ", BBE, "\n",
532
  "Percentile Rankings - ",input$szn),
533
- gp = gpar(fontsize = 25, fontface = "bold",
534
  fontfamily = "roboto"))
535
  logo_grob <- rasterGrob(logo_raster, x = 0, width = unit(.5, "npc"),hjust = 0)
536
  player_grob <- rasterGrob(player_raster, x = 0.5, width = unit(.5, "npc"),hjust = 0)
@@ -554,7 +554,7 @@ server <- function(input, output,session) {
554
  padding = unit(c(20, 20, 20, 20), "points") # top, right, bottom, left margins
555
  )
556
  )
557
- }, height = 800, width = 800)
558
  }
559
 
560
  # Run the app
 
480
  geom_tile(aes(x = percentile/2, width = percentile, fill = color),
481
  height = 0.7) +
482
  annotate("segment", x = c(10, 50, 90), xend = c(10, 50, 90),
483
+ y = 0, yend = 16.35,
484
  color = c("white"),
485
  linewidth = 1.5, alpha = 0.5) +
486
  geom_segment(aes(x = -2, xend = -16,
 
492
  yend = as.numeric(factor(metric, levels = rev(metric))) - 0.3),
493
  linetype = "longdash", color = "#399098", size = 1) +
494
  geom_text(aes(x = -3, label = metric),
495
+ hjust = 1, size = 12, family = "roboto") +
496
  geom_text(aes(x = 103, label = value),
497
+ hjust = 0, size = 12, family = "roboto") +
498
  geom_point(aes(x = percentile, color = "white", fill = color),
499
  size = 12, shape = 21, stroke = 3) +
500
  geom_text(aes(x = percentile, label = percentile),
501
+ size = 8, color = "white", fontface = "bold", family = "roboto") +
502
  scale_x_continuous(limits = c(-16, 113), expand = c(0, 0)) +
503
  scale_fill_identity() +
504
  scale_color_identity() +
 
530
  title_grob <- textGrob(paste0(input$player, " - ", pos,
531
  "\n BBE - ", BBE, "\n",
532
  "Percentile Rankings - ",input$szn),
533
+ gp = gpar(fontsize = 35, fontface = "bold",
534
  fontfamily = "roboto"))
535
  logo_grob <- rasterGrob(logo_raster, x = 0, width = unit(.5, "npc"),hjust = 0)
536
  player_grob <- rasterGrob(player_raster, x = 0.5, width = unit(.5, "npc"),hjust = 0)
 
554
  padding = unit(c(20, 20, 20, 20), "points") # top, right, bottom, left margins
555
  )
556
  )
557
+ }, height = 750, width = 750)
558
  }
559
 
560
  # Run the app