jofaichow commited on
Commit
c46d625
1 Parent(s): 50e765d

Added hline and vline to KPI charts

Browse files
Files changed (1) hide show
  1. app/app.R +62 -2
app/app.R CHANGED
@@ -367,6 +367,57 @@ ui <- shinydashboardPlus::dashboardPage(
367
  ),
368
 
369
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  tabPanel("Payout (Overview)",
371
 
372
  br(),
@@ -632,7 +683,7 @@ server <- function(input, output) {
632
  })
633
 
634
  output$text_next <- renderText({
635
- if (length(react_ls_model()) >= 1) "Step 3: Payout Summary (see ←)" else " "
636
  })
637
 
638
  output$text_note <- renderText({
@@ -980,7 +1031,12 @@ server <- function(input, output) {
980
  output$text_performance_models_note <- renderText({
981
  if (nrow(react_d_filter()) >= 1) "NOTE: You may want to find out which models have high CORRv2 Sharpe and high TC Sharpe." else " "
982
  })
983
-
 
 
 
 
 
984
 
985
  # ============================================================================
986
  # Reactive valueBox outputs: Rounds
@@ -1295,6 +1351,8 @@ server <- function(input, output) {
1295
  ) +
1296
  scale_x_continuous(breaks = breaks_pretty(5)) +
1297
  scale_y_continuous(breaks = breaks_pretty(5)) +
 
 
1298
  xlab("\nAverage TC") +
1299
  ylab("\nAverage CORRv2")
1300
 
@@ -1333,6 +1391,8 @@ server <- function(input, output) {
1333
  ) +
1334
  scale_x_continuous(breaks = breaks_pretty(5)) +
1335
  scale_y_continuous(breaks = breaks_pretty(5)) +
 
 
1336
  xlab("\nSharpe Ratio of TC") +
1337
  ylab("\nSharpe Ratio of CORRv2")
1338
 
 
367
  ),
368
 
369
 
370
+ tabPanel("KPI Charts",
371
+
372
+ br(),
373
+
374
+ h3(strong(textOutput(outputId = "text_performance_chart"))),
375
+
376
+ br(),
377
+
378
+ fluidRow(
379
+
380
+ column(4,
381
+ markdown("## **CORR Multiper**"),
382
+ sliderInput(inputId = "multiper_corr",
383
+ label = "Numerai Classic Tournament Rounds",
384
+ width = "100%",
385
+ step = 0.5,
386
+ min = 0,
387
+ max = 2,
388
+ value = 1)
389
+ ),
390
+
391
+ column(4,
392
+ markdown("## **TC Multiper**"),
393
+ sliderInput(inputId = "multiper_tc",
394
+ label = "Numerai Classic Tournament Rounds",
395
+ width = "100%",
396
+ step = 0.5,
397
+ min = 0,
398
+ max = 1,
399
+ value = 1)
400
+ ),
401
+
402
+
403
+ column(4,
404
+
405
+ markdown("## **Refresh**"),
406
+ br(),
407
+ actionBttn(inputId = "button_kpi_chart",
408
+ label = "Generate / Refresh",
409
+ color = "primary",
410
+ icon = icon("refresh"),
411
+ style = "gradient",
412
+ block = TRUE)
413
+ )
414
+
415
+
416
+ ) # end of fluidRow
417
+
418
+ ),
419
+
420
+
421
  tabPanel("Payout (Overview)",
422
 
423
  br(),
 
683
  })
684
 
685
  output$text_next <- renderText({
686
+ if (length(react_ls_model()) >= 1) "Step 3: Performance Summary (see ←)" else " "
687
  })
688
 
689
  output$text_note <- renderText({
 
1031
  output$text_performance_models_note <- renderText({
1032
  if (nrow(react_d_filter()) >= 1) "NOTE: You may want to find out which models have high CORRv2 Sharpe and high TC Sharpe." else " "
1033
  })
1034
+
1035
+ output$text_performance_chart <- renderText({
1036
+ if (nrow(react_d_filter()) >= 1) "Model Performance Comparison" else " "
1037
+ })
1038
+
1039
+
1040
 
1041
  # ============================================================================
1042
  # Reactive valueBox outputs: Rounds
 
1351
  ) +
1352
  scale_x_continuous(breaks = breaks_pretty(5)) +
1353
  scale_y_continuous(breaks = breaks_pretty(5)) +
1354
+ geom_vline(aes(xintercept = 0), linewidth = 0.25, color = "grey", linetype = "dashed") +
1355
+ geom_hline(aes(yintercept = 0), linewidth = 0.25, color = "grey", linetype = "dashed") +
1356
  xlab("\nAverage TC") +
1357
  ylab("\nAverage CORRv2")
1358
 
 
1391
  ) +
1392
  scale_x_continuous(breaks = breaks_pretty(5)) +
1393
  scale_y_continuous(breaks = breaks_pretty(5)) +
1394
+ geom_vline(aes(xintercept = 0), linewidth = 0.25, color = "grey", linetype = "dashed") +
1395
+ geom_hline(aes(yintercept = 0), linewidth = 0.25, color = "grey", linetype = "dashed") +
1396
  xlab("\nSharpe Ratio of TC") +
1397
  ylab("\nSharpe Ratio of CORRv2")
1398