From 8567ffe56fbd570420620802de31c16954b58ee7 Mon Sep 17 00:00:00 2001 From: "Vincent L. Ott" <123652963+vincentott@users.noreply.github.com> Date: Sat, 13 Jul 2024 14:17:09 +0200 Subject: [PATCH 1/2] added JASPO palette --- R/colorPalettes.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/colorPalettes.R b/R/colorPalettes.R index d8c0acc..6b97c96 100644 --- a/R/colorPalettes.R +++ b/R/colorPalettes.R @@ -6,13 +6,14 @@ jaspGraphs_data <- list2env(list( colorblind = list(colors = RColorBrewer::brewer.pal(8L, "Dark2")), colorblind2 = list(colors = RColorBrewer::brewer.pal(8L, "Set2")), colorblind3 = list(colors = c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")), # from ggthemes + jaspo = list(colors = c("#00A9E6", "#00BA63", "#BA0057", "#FB8B00", "#956BF8", "#38BBBB", "#633F33", "#EA008B")), # JASP´s own palette, created by Vincent Ott viridis = list(colors = viridisLite::viridis(256L)), # viridis::scale_color_viridis blue = list(colors = c("#d1e1ec", "#b3cde0", "#6497b1", "#005b96", "#03396c", "#011f4b")), # bayesplot::color_scheme_get("blue") gray = list(colors = c("#DFDFDF", "#bfbfbf", "#999999", "#737373", "#505050", "#383838")), # bayesplot::color_scheme_get("gray") ggplot2 = list(colors = c("#F8766D", "#CD9600", "#7CAE00", "#00BE67", "#00BFC4", "#00A9FF", "#C77CFF", "#FF61CC"), fun = scales::hue_pal()), sportsTeamsNBA = list(colors = c("#e13a3e", "#008348", "#061922", "#1d1160", "#860038", "#4d90cd", "#ffc633", "#0f586c", "#00471b", "#005083")), # unique(teamcolors::league_pal("nba"))[-c(5,7,9,10,13)][1:10] - grandBudapest = list(colors = c("#E6A0C4", "#C6CDF7", "#D8A499", "#7294D4", "#F1BB7B", "#FD6467", "#5B1A18", "#D67236"))# c( wesanderson:::wes_palettes[["GrandBudapest2"]], wesanderson:::wes_palettes[["GrandBudapest1"]]) + grandBudapest = list(colors = c("#E6A0C4", "#C6CDF7", "#D8A499", "#7294D4", "#F1BB7B", "#FD6467", "#5B1A18", "#D67236")) # c( wesanderson:::wes_palettes[["GrandBudapest2"]], wesanderson:::wes_palettes[["GrandBudapest1"]]) )) #'@title JASP color palettes From cd6d0808ff48446afd9d8e5f231a322e1345c4fd Mon Sep 17 00:00:00 2001 From: Joris Goosen Date: Tue, 17 Sep 2024 12:25:07 +0200 Subject: [PATCH 2/2] jaspo -> jaspPalette --- R/colorPalettes.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/colorPalettes.R b/R/colorPalettes.R index 6b97c96..ba34723 100644 --- a/R/colorPalettes.R +++ b/R/colorPalettes.R @@ -6,7 +6,7 @@ jaspGraphs_data <- list2env(list( colorblind = list(colors = RColorBrewer::brewer.pal(8L, "Dark2")), colorblind2 = list(colors = RColorBrewer::brewer.pal(8L, "Set2")), colorblind3 = list(colors = c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")), # from ggthemes - jaspo = list(colors = c("#00A9E6", "#00BA63", "#BA0057", "#FB8B00", "#956BF8", "#38BBBB", "#633F33", "#EA008B")), # JASP´s own palette, created by Vincent Ott + jaspPalette = list(colors = c("#00A9E6", "#00BA63", "#BA0057", "#FB8B00", "#956BF8", "#38BBBB", "#633F33", "#EA008B")), # JASP´s own palette, created by Vincent Ott viridis = list(colors = viridisLite::viridis(256L)), # viridis::scale_color_viridis blue = list(colors = c("#d1e1ec", "#b3cde0", "#6497b1", "#005b96", "#03396c", "#011f4b")), # bayesplot::color_scheme_get("blue") gray = list(colors = c("#DFDFDF", "#bfbfbf", "#999999", "#737373", "#505050", "#383838")), # bayesplot::color_scheme_get("gray")