richelbilderbeek / pirouette_article

Article about pirouette, by Bilderbeek, Laudanno and Etienne
GNU General Public License v3.0
0 stars 0 forks source link

pir_plot: show models names' abbreviations #36

Closed richelbilderbeek closed 5 years ago

richelbilderbeek commented 5 years ago

Currently, the pir_plots show model names as used in the R code:

2019-04-04-073639_1920x1056_scrot

Instead, I'd prefer human-friendly abbreviations.

I suggest to do the same renaming as in e.g. 'Table 11: Evidences of figure 2'. From pirouette_article/scripts/example_5.R I copy-paste:

df_evidences$site_model_name <- plyr::revalue(df_evidences$site_model_name, c("JC69" = "JC", "TN93" = "TN"))
df_evidences$clock_model_name <- plyr::revalue(
  df_evidences$clock_model_name,
  c("strict" = "Strict", "relaxed_log_normal" = "RLN")
)
df_evidences$tree_prior_name <- plyr::revalue(
  df_evidences$tree_prior_name,
  c(
    "yule" = "Yule", 
    "birth_death" = "BD", 
    "coalescent_bayesian_skyline" = "CBS", 
    "coalescent_constant_population" = "CCP", 
    "coalescent_exp_population" = "CEP"
  )
)
richelbilderbeek commented 5 years ago

Fixed:

2019-04-09-110932_1202x768_scrot