Aliquanto3 / Shiny_mtg_meta_analysis

MTGO Metagame analysis with R Shiny
2 stars 1 forks source link

Winrate vs Presence (most present) panel not working #1

Closed mattialopresti closed 1 year ago

mattialopresti commented 1 year ago

image

Dear Anael, trying to reproduce your analysis today I encountered this problem in the app. Bests,

Mattia (elfutnap on MTGO)

mattialopresti commented 1 year ago

Problem was on line 630 of 4-functions.R file in kmeans_arch function

622  gg_point = ggplot(data = df_kde,  mapping = aes(x = Presence, y = WinrateAverage,
623                                                   colour = CLUSTER)) +
624      coord_cartesian() + theme_bw(base_size = 6) +
625      scale_x_continuous(trans = 'log10') + scale_fill_locuszoom() +
626      labs(x=x_label, y=y_label, title=graph_title, subtitle=graph_subtitle) +
627      geom_text_repel(aes(label=Archetype),hjust=0, vjust=0,point.padding = NA,
628                     size = 2, nudge_x = 0.1, direction = "y", show.legend = FALSE,
629                    segment.size=0.2,segment.alpha=0.4) +
630      geom_point_interactive(aes(size=3*NoPlayers, tooltip = Tooltip_Text,
631      data_id = Archetype),show.legend = FALSE)
632    
633  girafe(ggobj = gg_point)

By removing tooltip = Tooltip_Text, the code works correctly.

Aliquanto3 commented 1 year ago

Thank you very much for correcting it, I published the fix. I am on holidays, I cannot do much more before September.