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

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +5 -5
app.R CHANGED
@@ -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 = 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,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 = 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)
 
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 = 6, 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
  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)