From 89c8034bfc9a1261ba13ac0f87867d3dc5eab5a5 Mon Sep 17 00:00:00 2001 From: Hui Chen <89246125+huichen99@users.noreply.github.com> Date: Tue, 14 May 2024 14:55:20 -0400 Subject: [PATCH 1/2] Update data-generator.R --- data-raw/data-generator.R | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/data-raw/data-generator.R b/data-raw/data-generator.R index 67e7a43..f452eb7 100644 --- a/data-raw/data-generator.R +++ b/data-raw/data-generator.R @@ -49,6 +49,19 @@ ggsci_db$"jama"$"default" <- c( "Makara" = "#80796B" ) +# Color palette inspired by plots in BMJ (http://technology.bmj.com/living-style-guide/colour.html) +ggsci_db$"bmj"$"default" <- c( + "Blue" = "#2A6EBB", + "Grey" = "#747678", + "Yellow" = "#F0AB00", + "Orange" = "#E37222", + "Red" = "#CD202C", + "Pink" = "#C50084", + "Purple" = "#7D5CC6", + "Aqua" = "#00B2A9", + "Green" = "#69BE28" +) + # Color palette inspired by plots in Journal of Clinical Oncology ggsci_db$"jco"$"default" <- c( "Lochmara" = "#0073C2", "Corn" = "#EFC000", @@ -486,6 +499,7 @@ test_barplot("aaas", "default") test_barplot("nejm", "default") test_barplot("lancet", "lanonc") test_barplot("jama", "default") +test_barplot("bmj", "default") test_barplot("jco", "default") test_barplot("ucscgb", "default") test_barplot("d3", "category10") From d1fb49b233816fd7bc93642f6f1bfd4b7ff47f12 Mon Sep 17 00:00:00 2001 From: Hui Chen <89246125+huichen99@users.noreply.github.com> Date: Tue, 14 May 2024 22:16:57 -0400 Subject: [PATCH 2/2] Update data-generator.R Re-arrange BMJ colours --- data-raw/data-generator.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data-raw/data-generator.R b/data-raw/data-generator.R index f452eb7..2b3c558 100644 --- a/data-raw/data-generator.R +++ b/data-raw/data-generator.R @@ -52,14 +52,14 @@ ggsci_db$"jama"$"default" <- c( # Color palette inspired by plots in BMJ (http://technology.bmj.com/living-style-guide/colour.html) ggsci_db$"bmj"$"default" <- c( "Blue" = "#2A6EBB", - "Grey" = "#747678", "Yellow" = "#F0AB00", - "Orange" = "#E37222", - "Red" = "#CD202C", "Pink" = "#C50084", "Purple" = "#7D5CC6", + "Orange" = "#E37222", + "Green" = "#69BE28", "Aqua" = "#00B2A9", - "Green" = "#69BE28" + "Red" = "#CD202C", + "Grey" = "#747678" ) # Color palette inspired by plots in Journal of Clinical Oncology