diff --git a/404.html b/404.html index 47faef6..1980867 100644 --- a/404.html +++ b/404.html @@ -68,7 +68,7 @@
diff --git a/LICENSE-text.html b/LICENSE-text.html index 23c693a..34c9447 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -44,7 +44,7 @@ diff --git a/LICENSE.html b/LICENSE.html index 8f8f883..e37e363 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -48,7 +48,7 @@ diff --git a/articles/DOYPAColors.html b/articles/DOYPAColors.html index 3f79111..e6f316c 100644 --- a/articles/DOYPAColors.html +++ b/articles/DOYPAColors.html @@ -187,9 +187,10 @@In the first example, replace "retro"
with the name of
the palette you want to use. If you omit the palette
argument, doypa()
will return the colors of a default
@@ -216,7 +217,7 @@
Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/doypa_palette.html b/reference/doypa_palette.html index 3868e20..f05b89d 100644 --- a/reference/doypa_palette.html +++ b/reference/doypa_palette.html @@ -102,7 +102,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/index.html b/reference/index.html index d75ab2a..1877a03 100644 --- a/reference/index.html +++ b/reference/index.html @@ -122,7 +122,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/preview_doypa_pals-1.png b/reference/preview_doypa_pals-1.png index 868d5ce..848a5af 100644 Binary files a/reference/preview_doypa_pals-1.png and b/reference/preview_doypa_pals-1.png differ diff --git a/reference/preview_doypa_pals-2.png b/reference/preview_doypa_pals-2.png index cdf16b6..a74d201 100644 Binary files a/reference/preview_doypa_pals-2.png and b/reference/preview_doypa_pals-2.png differ diff --git a/reference/preview_doypa_pals-3.png b/reference/preview_doypa_pals-3.png index 437d812..2adfc0b 100644 Binary files a/reference/preview_doypa_pals-3.png and b/reference/preview_doypa_pals-3.png differ diff --git a/reference/preview_doypa_pals.html b/reference/preview_doypa_pals.html index 18eaa4f..c0972d9 100644 --- a/reference/preview_doypa_pals.html +++ b/reference/preview_doypa_pals.html @@ -83,7 +83,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/preview_pal-1.png b/reference/preview_pal-1.png index e1e99a2..2c244ef 100644 Binary files a/reference/preview_pal-1.png and b/reference/preview_pal-1.png differ diff --git a/reference/preview_pal.html b/reference/preview_pal.html index 0869a6f..98008eb 100644 --- a/reference/preview_pal.html +++ b/reference/preview_pal.html @@ -78,7 +78,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/scale_color_doypa-1.png b/reference/scale_color_doypa-1.png index 02e02a9..9a9ecc3 100644 Binary files a/reference/scale_color_doypa-1.png and b/reference/scale_color_doypa-1.png differ diff --git a/reference/scale_color_doypa-2.png b/reference/scale_color_doypa-2.png index 132db89..c1619f0 100644 Binary files a/reference/scale_color_doypa-2.png and b/reference/scale_color_doypa-2.png differ diff --git a/reference/scale_color_doypa-3.png b/reference/scale_color_doypa-3.png index fcee4a1..bcdd0fb 100644 Binary files a/reference/scale_color_doypa-3.png and b/reference/scale_color_doypa-3.png differ diff --git a/reference/scale_color_doypa.html b/reference/scale_color_doypa.html index 6db0f26..ccdf0b1 100644 --- a/reference/scale_color_doypa.html +++ b/reference/scale_color_doypa.html @@ -119,7 +119,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/scale_colour_doypa.html b/reference/scale_colour_doypa.html index 691456c..bcb9dbf 100644 --- a/reference/scale_colour_doypa.html +++ b/reference/scale_colour_doypa.html @@ -104,7 +104,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/search.json b/search.json index 6c15fc5..0014bc4 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Getting Started with DOYPAColors","text":"DOYPAColors package offers variety color palettes designed enhance data visualizations R. palettes compatible ggplot2 categorized three main types: sequential, diverging, qualitative. package also includes section colorblind-friendly palettes. vignette provides quick guide use package, including list available palettes, preview , apply plots.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"installation","dir":"Articles","previous_headings":"","what":"Installation","title":"Getting Started with DOYPAColors","text":"get started DOYPAColors, can install package CRAN: can install development version GitHub:","code":"install.packages(\"DOYPAColors\") library(DOYPAColors) if (!require(\"devtools\")) install.packages(\"devtools\") devtools::install_github(\"jmestret/DOYPAColors\") library(DOYPAColors)"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"how-to-use","dir":"Articles","previous_headings":"","what":"How to Use","title":"Getting Started with DOYPAColors","text":"DOYPAColors designed simplify process selecting color palettes plots. can quickly apply palette without overthinking details using doypa() function automatically choose palette fits type need, use scale_fill_doypa() scale_color_doypa() ggplot2 plots.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"basic-usage-with-automatic-palette-selection","dir":"Articles","previous_headings":"How to Use","what":"Basic Usage with Automatic Palette Selection","title":"Getting Started with DOYPAColors","text":"Simply specify type palette want (seq, div, qual) let DOYPAColors handle rest. example: example, scale_fill_doypa(type = \"qual\") automatically selects qualitative palette suitable number categories data. additional options customization, refer rest vignette.","code":"library(ggplot2) # Plot using automatic palette selection ggplot(mtcars, aes(x = factor(cyl), fill = factor(cyl))) + geom_bar() + scale_fill_doypa(type = \"qual\", discrete = TRUE) + theme_minimal() + labs(title = \"Bar Plot with Automatic DOYPAColors Palette\") #> We've handpicked the exciting 'snack' palette for you - no overthinking required!"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"listing-available-palettes","dir":"Articles","previous_headings":"Exploring Palettes","what":"Listing Available Palettes","title":"Getting Started with DOYPAColors","text":"view available palettes, use list_doypa_pals() function:","code":"# List all available DOYPAColors palettes list_doypa_pals() #> $sequential #> [1] \"blue\" \"deep\" \"blue_purple\" \"purple\" \"yellow_green\" #> [6] \"doypa_qual\" \"regal_blue\" \"blue_red\" \"red\" \"orange\" #> [11] \"pink\" \"gray\" #> #> $diverging #> [1] \"blue2red\" \"purple2green\" \"mir\" #> #> $qualitative #> [1] \"astro\" \"buzz\" \"cyberpunk\" \"earth\" #> [5] \"goofy\" \"google\" \"doypa\" \"high_contrast\" #> [9] \"nature\" \"retro\" \"rookie\" \"snack\" #> [13] \"sunset\" \"tidy\" \"vaporwave\""},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"previewing-palettes","dir":"Articles","previous_headings":"Exploring Palettes","what":"Previewing Palettes","title":"Getting Started with DOYPAColors","text":"can preview available palettes using preview_doypa_pals() function: preview single palette multiple plots, use preview_pal() function:","code":"# Preview all available DOYPAColors palettes preview_doypa_pals() # Preview a specific DOYPAColors palette preview_pal(palette = \"doypa\") #> Warning: Computation failed in `stat_binhex()`. #> Caused by error in `compute_group()`: #> ! The package \"hexbin\" is required for `stat_bin_hex()`."},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"getting-palette-colors","dir":"Articles","previous_headings":"Exploring Palettes","what":"Getting Palette Colors","title":"Getting Started with DOYPAColors","text":"retrieve vector colors specific palette, use doypa() function. can specify palette want name, simply call function without arguments get default palette. βre unsure palette use, let DOYPAColors choose one : first example, replace \"retro\" name palette want use. omit palette argument, doypa() return colors default palette.","code":"# Retrieve colors from a specific palette doypa_colors <- doypa(palette = \"retro\") print(doypa_colors) #> [1] \"#D54751\" \"#EF9A48\" \"#FFFCC7\" \"#4DA394\" \"#59322B\" # Retrieve a default palette if no palette name is provided default_palette_colors <- doypa() #> Surprise! You've got the 'vaporwave' palette ready to roll. Less thinking, more plotting! print(default_palette_colors) #> [1] \"#511940\" \"#F86A2A\" \"#07B7AD\" \"#0B60E1\" \"#E7C6AE\""},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"basic-usage","dir":"Articles","previous_headings":"Applying Palettes to ggplot2","what":"Basic Usage","title":"Getting Started with DOYPAColors","text":"Integrate DOYPAColors palettes ggplot2 plots using scale_fill_doypa() fill aesthetics scale_color_doypa() color aesthetics. βs example apply qualitative palette (type = \"qual\") bar plot:","code":"library(ggplot2) # Create a bar plot with a DOYPAColors palette ggplot(mtcars, aes(x = factor(cyl), fill = factor(cyl))) + geom_bar() + scale_fill_doypa(type = \"qual\", discrete = TRUE) + theme_minimal() + labs(title = \"Bar Plot with DOYPAColors\") #> We've selected a random palette for you: rookie"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"number-of-colors-n","dir":"Articles","previous_headings":"Applying Palettes to ggplot2 > Using Palette Options","what":"Number of Colors (n)","title":"Getting Started with DOYPAColors","text":"Specify number colors use palette n argument:","code":"# Apply a palette with a specific number of colors ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", n = 3, discrete = TRUE) + theme_classic()"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"reversing-the-palette-reverse","dir":"Articles","previous_headings":"Applying Palettes to ggplot2 > Using Palette Options","what":"Reversing the Palette (reverse)","title":"Getting Started with DOYPAColors","text":"Reverse color order reverse argument:","code":"ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", reverse = TRUE, discrete = TRUE) + theme_classic() + ggtitle(\"Palette Reversed\") ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", n = 3, reverse = TRUE, discrete = TRUE) + theme_classic() + ggtitle(\"Palette Reversed (n = 3)\")"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"creating-a-color-gradient-gradient","dir":"Articles","previous_headings":"Applying Palettes to ggplot2 > Using Palette Options","what":"Creating a Color Gradient (gradient)","title":"Getting Started with DOYPAColors","text":"Generate color gradient interpolates colors selected palette:","code":"ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", gradient = TRUE, discrete = TRUE) + theme_classic()"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"conclusion","dir":"Articles","previous_headings":"","what":"Conclusion","title":"Getting Started with DOYPAColors","text":"DOYPAColors package makes easy apply diverse visually appealing color palettes data visualizations. options list, preview, customize palettes, flexibility enhance plots make engaging. Explore various palettes options find perfect fit data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Jorge Mestre. Author, maintainer.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Mestre J (2024). DOYPAColors: Overthink Palette Colors. R package version 0.0.2, https://jmestret.github.io/DOYPAColors/, https://github.com/jmestret/DOYPAColors.","code":"@Manual{, title = {DOYPAColors: Don't Overthink Your Palette of Colors}, author = {Jorge Mestre}, year = {2024}, note = {R package version 0.0.2, https://jmestret.github.io/DOYPAColors/}, url = {https://github.com/jmestret/DOYPAColors}, }"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Don't Overthink Your Palette of Colors","text":"Tired agonizing color choices data visualizations? Let DOYPAColors heavy lifting ! R package provides delightful array color palettes, meticulously crafted enhance plots. DOYPAColors, can even let us surprise palette choice, can focus matters βtelling dataβs unique story. Say goodbye color selection headaches hello vibrant, eye-catching visuals! π¨","code":""},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Don't Overthink Your Palette of Colors","text":"install DOYPAColors CRAN, use: development version GitHub, use:","code":"install.packages(\"DOYPAColors\") if (!require(\"devtools\")) { install.packages(\"devtools\") } devtools::install_github(\"jmestret/DOYPAColors\")"},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"how-to-use","dir":"","previous_headings":"","what":"How to use","title":"Don't Overthink Your Palette of Colors","text":"Using DOYPAColors straightforward. Access utilize palettes R plots single line code: can apply palettes ggplot2 plots using functions scale_fill_doypa() scale_color_doypa(): can explore specific palettes fit different types data using preview_pal() function:","code":"library(DOYPAColors) color_palette <- doypa() library(ggplot2) # Create a bar plot with a DOYPAColors palette ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(discrete = TRUE) + theme_classic() preview_pal(\"doypa\")"},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"available-palettes","dir":"","previous_headings":"How to use","what":"Available palettes","title":"Don't Overthink Your Palette of Colors","text":"βs visualization available palettes DOYPAColors: advanced usage options, check web get DOYPAColors palettes!","code":""},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"contributing","dir":"","previous_headings":"","what":"Contributing","title":"Don't Overthink Your Palette of Colors","text":"welcome contributions community! new color palette βd like share, βd thrilled consider inclusion DOYPAColors. submit palette: Provide name palette. Specify type palette (sequential, diverging, qualitative). List HEX color codes palette. can submit palette details opening issue pull request GitHub repository. review submission , meets criteria, βll glad include package!","code":""},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"how-to-cite","dir":"","previous_headings":"","what":"How to cite","title":"Don't Overthink Your Palette of Colors","text":"use DOYPAColors, please reference R package follows: Jorge Mestre (2023). DOYPAColors: Donβt Overthink Palette Colors. R package version 0.0.2, https://cran.r-project.org/web/packages/DOYPAColors","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"DOYPAColors Palette Selector β doypa","title":"DOYPAColors Palette Selector β doypa","text":"function provides access DOYPAColors palettes, categorized sequential, diverging, qualitative types. can select palette, define number colors, reverse order, interpolate colors gradient.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"DOYPAColors Palette Selector β doypa","text":"","code":"doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, type = \"all\", colorblind = FALSE )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"DOYPAColors Palette Selector β doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n integer specifying number colors return. `NULL`, full palette returned. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"DOYPAColors Palette Selector β doypa","text":"character vector colors.","code":""},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"DOYPAColors Palette Selector β doypa","text":"","code":"# Get a palette by name colors <- doypa(\"buzz\") print(colors) #> [1] \"#6036a4\" \"#9de26b\" \"#F5C290\" \"#B1B3B3\" \"#FF2400\" \"#ADD8E6\" # Get a random palette colors <- doypa() #> Ready, set, color! We've gone with the 'doypa_qual' palette - no need to sweat it! print(colors) #> [1] \"#bceecb\" \"#91debc\" \"#67cdac\" \"#42ba9b\" \"#7f9d3a\" \"#d47200\" \"#d64b02\" #> [8] \"#ba2314\" \"#880024\" # Get a palette with a specific number of colors colors <- doypa(\"google\", n = 3) print(colors) #> [1] \"#4285F4\" \"#34A853\" \"#FBBC05\" # Reverse the order of the palette colors <- doypa(\"buzz\", reverse = TRUE) print(colors) #> [1] \"#ADD8E6\" \"#FF2400\" \"#B1B3B3\" \"#F5C290\" \"#9de26b\" \"#6036a4\" # Interpolate colors as a gradient colors <- doypa(\"buzz\", n = 10, gradient = TRUE) #> Warning: 'n' larger than the palette length. Returning buzz palette with interpolated colors. print(colors) #> [1] \"#6036A4\" \"#819584\" \"#A6DE6F\" \"#D7CC83\" \"#E5BE97\" \"#C0B6AB\" \"#CA8377\" #> [8] \"#F63313\" \"#DA7366\" \"#ADD8E6\""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a DOYPAColors color palette function β doypa_palette","title":"Create a DOYPAColors color palette function β doypa_palette","text":"function creates function generates color vector `n` colors specified DOYPAColors palette. generated function allows easily create customized color palettes specified number colors.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a DOYPAColors color palette function β doypa_palette","text":"","code":"doypa_palette( palette = NULL, reverse = FALSE, gradient = FALSE, type = \"all\", colorblind = FALSE )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a DOYPAColors color palette function β doypa_palette","text":"palette character string specifying name palette use. `NULL`, random palette selected. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a DOYPAColors color palette function β doypa_palette","text":"function generates vector `n` colors color gradient.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a DOYPAColors color palette function β doypa_palette","text":"","code":"# Create a function for generating colors from the \"buzz\" palette get_buzz_palette <- DOYPAColors:::doypa_palette(palette = \"buzz\") color_palette <- get_buzz_palette(5) print(color_palette) #> [1] \"#6036a4\" \"#9de26b\" \"#F5C290\" \"#B1B3B3\" \"#FF2400\""},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":null,"dir":"Reference","previous_headings":"","what":"List Available DOYPAColors Color Palettes β list_doypa_pals","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"function provides list available DOYPAColors color palettes, categorized type: sequential, diverging, qualitative. helps users explore various color palettes available use visualizations.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"","code":"list_doypa_pals()"},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"named list containing names available color palettes type: \"sequential\", \"diverging\", \"qualitative\".","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"","code":"# List available DOYPAColors color palettes by type palette_names <- list_doypa_pals() print(palette_names) #> $sequential #> [1] \"blue\" \"deep\" \"blue_purple\" \"purple\" \"yellow_green\" #> [6] \"doypa_qual\" \"regal_blue\" \"blue_red\" \"red\" \"orange\" #> [11] \"pink\" \"gray\" #> #> $diverging #> [1] \"blue2red\" \"purple2green\" \"mir\" #> #> $qualitative #> [1] \"astro\" \"buzz\" \"cyberpunk\" \"earth\" #> [5] \"goofy\" \"google\" \"doypa\" \"high_contrast\" #> [9] \"nature\" \"retro\" \"rookie\" \"snack\" #> [13] \"sunset\" \"tidy\" \"vaporwave\" #>"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":null,"dir":"Reference","previous_headings":"","what":"Preview DOYPAColors Palettes β preview_doypa_pals","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"function generates visual preview DOYPAColors color palettes. helps users explore select color schemes data visualizations displaying palette grid format.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"","code":"preview_doypa_pals(type = \"all\", colorblind = FALSE)"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"type Character string specifying type palettes preview. Options : \"\" (default), \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). colorblind Logical. `TRUE`, restricts preview palettes designed colorblind individuals mind.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"`ggplot` visualization displaying DOYPAColors color palettes, facilitating exploration selection color schemes data visualizations.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"","code":"# Preview all available DOYPAColors palettes preview_doypa_pals() # Preview only sequential DOYPAColors palettes preview_doypa_pals(type = \"seq\") # Preview colorblind-friendly DOYPAColors palettes preview_doypa_pals(colorblind = TRUE)"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":null,"dir":"Reference","previous_headings":"","what":"Preview a Single Color Palette β preview_pal","title":"Preview a Single Color Palette β preview_pal","text":"function generates visual preview DOYPAColors palette multiple plots. includes direct palette preview, scatter plot, bar plot, heatmap, using specified palette.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Preview a Single Color Palette β preview_pal","text":"","code":"preview_pal(palette, seed = NULL)"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Preview a Single Color Palette β preview_pal","text":"palette character string specifying name palette use. seed optional seed reproducibility random numbers.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Preview a Single Color Palette β preview_pal","text":"`ggplot` object multiple plots arranged grid, showcasing color palette different visualizations.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Preview a Single Color Palette β preview_pal","text":"","code":"# Preview a DOYPAColors palette with multiple plots preview_pal(palette = \"buzz\") #> Warning: Computation failed in `stat_binhex()`. #> Caused by error in `compute_group()`: #> ! The package \"hexbin\" is required for `stat_bin_hex()`."},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"function sets color scale ggplot2 using DOYPAColors color palettes, allowing apply palettes discrete continuous data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"","code":"scale_color_doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, discrete = FALSE, type = \"all\", colorblind = FALSE, ... )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n Number colors needed. `NULL`, default number levels discrete scales continuous gradient continuous scales. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. discrete Boolean indicating whether generate discrete continuous palette (default: continuous). type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`. ... Additional parameters passed ggplot2's `scale_color_*` functions.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"`ggplot2` color scale suitable adding `ggplot2` object control color aesthetics.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"","code":"library(ggplot2) # Discrete data data(iris) disc <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length, color = Species)) + geom_point() + theme_classic() disc <- disc + scale_color_doypa(palette = \"buzz\", discrete = TRUE) print(disc) # Continuous data cont <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length, color = Sepal.Length)) + geom_point() + theme_classic() cont <- cont + scale_color_doypa(palette = \"buzz\") print(cont) # Colorblind-friendly palette disc_colorblind <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length, color = Species)) + geom_point() + theme_classic() disc_colorblind <- disc_colorblind + scale_color_doypa(colorblind = TRUE, discrete = TRUE) print(disc_colorblind) #> Ready to splash some color? Today's choice is the 'doypa' palette. Enjoy!"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"function sets color scale ggplot2 using DOYPAColors color palettes, allowing apply palettes discrete continuous data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"","code":"scale_colour_doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, discrete = FALSE, type = \"all\", colorblind = FALSE, ... )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n Number colors needed. `NULL`, default number levels discrete scales continuous gradient continuous scales. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. discrete Boolean indicating whether generate discrete continuous palette (default: continuous). type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`. ... Additional parameters passed ggplot2's `scale_colour_*` functions.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"`ggplot2` color scale suitable adding `ggplot2` object control color aesthetics.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"function sets fill scale ggplot2 using DOYPAColors color palettes, allowing use palettes ggplot2 visualizations discrete continuous data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"","code":"scale_fill_doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, discrete = FALSE, type = \"all\", colorblind = FALSE, ... )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n Number colors needed. `NULL`, default number levels discrete scales continuous gradient continuous scales. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. discrete Boolean indicating whether generate discrete continuous palette (default: continuous). type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`. ... Additional parameters passed ggplot2's `scale_fill_*` functions.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"`ggplot2` fill scale suitable adding `ggplot2` object control fill aesthetics.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"","code":"library(ggplot2) # Discrete data data(iris) disc <- ggplot(iris, aes(x = Species, y = Petal.Length, fill = Species)) + geom_boxplot() + theme_classic() disc <- disc + scale_fill_doypa(palette = \"buzz\", discrete = TRUE) print(disc) # Continuous data cont <- ggplot(faithfuld, aes(waiting, eruptions, fill = density)) + geom_tile() + theme_classic() cont <- cont + scale_fill_doypa(palette = \"buzz\") print(cont) # Colorblind-friendly palette disc_colorblind <- ggplot(iris, aes(x = Species, y = Petal.Length, fill = Species)) + geom_boxplot() + theme_classic() disc_colorblind <- disc_colorblind + scale_fill_doypa(colorblind = TRUE, discrete = TRUE) print(disc_colorblind) #> Ta-da! A surprise with the 'doypa' palette, just for you. Don't stress the small stuff!"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"major-updates-0-0-2","dir":"Changelog","previous_headings":"","what":"Major Updates","title":"DOYPAColors 0.0.2","text":"Palette Classification: Palettes now categorized three types: sequential, diverging, qualitative. classification helps choose suitable palette data visualization needs using type argument. Updated Arguments: ramp argument replaced gradient intuitive control color interpolation. Enhanced Preview Plots: preview plots redesigned provide comprehensive visualization available palettes. can now better explore compare palettes updated plot types. Colorblind-Friendly Palettes: Introduced dedicated section colorblind-friendly palettes, making easier select palettes accessible viewers. need continue expanding collection.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"other-changes-0-0-2","dir":"Changelog","previous_headings":"","what":"Other Changes","title":"DOYPAColors 0.0.2","text":"Improved Documentation: Updated README vignette detailed usage examples instructions apply customize palettes.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"doypacolors-001","dir":"Changelog","previous_headings":"","what":"DOYPAColors 0.0.1","title":"DOYPAColors 0.0.1","text":"CRAN release: 2023-11-04 First release","code":""}] +[{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Getting Started with DOYPAColors","text":"DOYPAColors package offers variety color palettes designed enhance data visualizations R. palettes compatible ggplot2 categorized three main types: sequential, diverging, qualitative. package also includes section colorblind-friendly palettes. vignette provides quick guide use package, including list available palettes, preview , apply plots.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"installation","dir":"Articles","previous_headings":"","what":"Installation","title":"Getting Started with DOYPAColors","text":"get started DOYPAColors, can install package CRAN: can install development version GitHub:","code":"install.packages(\"DOYPAColors\") library(DOYPAColors) if (!require(\"devtools\")) install.packages(\"devtools\") devtools::install_github(\"jmestret/DOYPAColors\") library(DOYPAColors)"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"how-to-use","dir":"Articles","previous_headings":"","what":"How to Use","title":"Getting Started with DOYPAColors","text":"DOYPAColors designed simplify process selecting color palettes plots. can quickly apply palette without overthinking details using doypa() function automatically choose palette fits type need, use scale_fill_doypa() scale_color_doypa() ggplot2 plots.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"basic-usage-with-automatic-palette-selection","dir":"Articles","previous_headings":"How to Use","what":"Basic Usage with Automatic Palette Selection","title":"Getting Started with DOYPAColors","text":"Simply specify type palette want (seq, div, qual) let DOYPAColors handle rest. example: example, scale_fill_doypa(type = \"qual\") automatically selects qualitative palette suitable number categories data. additional options customization, refer rest vignette.","code":"library(ggplot2) # Plot using automatic palette selection ggplot(mtcars, aes(x = factor(cyl), fill = factor(cyl))) + geom_bar() + scale_fill_doypa(type = \"qual\", discrete = TRUE) + theme_minimal() + labs(title = \"Bar Plot with Automatic DOYPAColors Palette\") #> We've handpicked the exciting 'snack' palette for you - no overthinking required!"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"listing-available-palettes","dir":"Articles","previous_headings":"Exploring Palettes","what":"Listing Available Palettes","title":"Getting Started with DOYPAColors","text":"view available palettes, use list_doypa_pals() function:","code":"# List all available DOYPAColors palettes list_doypa_pals() #> $sequential #> [1] \"blue\" \"deep\" \"blue_purple\" \"purple\" \"yellow_green\" #> [6] \"doypa_qual\" \"regal_blue\" \"blue_red\" \"red\" \"orange\" #> [11] \"pink\" \"gray\" #> #> $diverging #> [1] \"blue2red\" \"purple2green\" \"mir\" #> #> $qualitative #> [1] \"astro\" \"buzz\" \"cyberpunk\" \"earth\" #> [5] \"goofy\" \"google\" \"doypa\" \"high_contrast\" #> [9] \"nature\" \"retro\" \"rookie\" \"snack\" #> [13] \"sunset\" \"tidy\" \"vaporwave\""},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"previewing-palettes","dir":"Articles","previous_headings":"Exploring Palettes","what":"Previewing Palettes","title":"Getting Started with DOYPAColors","text":"can preview available palettes using preview_doypa_pals() function: preview single palette multiple plots, use preview_pal() function:","code":"# Preview all available DOYPAColors palettes preview_doypa_pals() # Preview a specific DOYPAColors palette preview_pal(palette = \"doypa\") #> Warning: Computation failed in `stat_binhex()`. #> Caused by error in `compute_group()`: #> ! The package \"hexbin\" is required for `stat_bin_hex()`."},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"getting-palette-colors","dir":"Articles","previous_headings":"Exploring Palettes","what":"Getting Palette Colors","title":"Getting Started with DOYPAColors","text":"retrieve vector colors specific palette, use doypa() function. can specify palette want name, simply call function without arguments get default palette. βre unsure palette use, let DOYPAColors choose one : first example, replace \"retro\" name palette want use. omit palette argument, doypa() return colors default palette.","code":"# Retrieve colors from a specific palette doypa_colors <- doypa(palette = \"retro\") print(doypa_colors) #> [1] \"#D54751\" \"#EF9A48\" \"#FFFCC7\" \"#4DA394\" \"#59322B\" # Retrieve a default palette if no palette name is provided default_palette_colors <- doypa() #> Surprise! You've got the 'pink' palette ready to roll. Less thinking, more plotting! print(default_palette_colors) #> [1] \"#fff0f3\" \"#ffc7d2\" \"#ff9fb0\" \"#ff768f\" \"#ff4d6d\" \"#d53d5a\" \"#ac2d48\" #> [8] \"#821d35\" \"#580d22\""},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"basic-usage","dir":"Articles","previous_headings":"Applying Palettes to ggplot2","what":"Basic Usage","title":"Getting Started with DOYPAColors","text":"Integrate DOYPAColors palettes ggplot2 plots using scale_fill_doypa() fill aesthetics scale_color_doypa() color aesthetics. βs example apply qualitative palette (type = \"qual\") bar plot:","code":"library(ggplot2) # Create a bar plot with a DOYPAColors palette ggplot(mtcars, aes(x = factor(cyl), fill = factor(cyl))) + geom_bar() + scale_fill_doypa(type = \"qual\", discrete = TRUE) + theme_minimal() + labs(title = \"Bar Plot with DOYPAColors\") #> Surprise! You've got the 'nature' palette ready to roll. Less thinking, more plotting!"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"number-of-colors-n","dir":"Articles","previous_headings":"Applying Palettes to ggplot2 > Using Palette Options","what":"Number of Colors (n)","title":"Getting Started with DOYPAColors","text":"Specify number colors use palette n argument:","code":"# Apply a palette with a specific number of colors ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", n = 3, discrete = TRUE) + theme_classic()"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"reversing-the-palette-reverse","dir":"Articles","previous_headings":"Applying Palettes to ggplot2 > Using Palette Options","what":"Reversing the Palette (reverse)","title":"Getting Started with DOYPAColors","text":"Reverse color order reverse argument:","code":"ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", reverse = TRUE, discrete = TRUE) + theme_classic() + ggtitle(\"Palette Reversed\") ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", n = 3, reverse = TRUE, discrete = TRUE) + theme_classic() + ggtitle(\"Palette Reversed (n = 3)\")"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"creating-a-color-gradient-gradient","dir":"Articles","previous_headings":"Applying Palettes to ggplot2 > Using Palette Options","what":"Creating a Color Gradient (gradient)","title":"Getting Started with DOYPAColors","text":"Generate color gradient interpolates colors selected palette:","code":"ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(palette = \"buzz\", gradient = TRUE, discrete = TRUE) + theme_classic()"},{"path":"https://jmestret.github.io/DOYPAColors/articles/DOYPAColors.html","id":"conclusion","dir":"Articles","previous_headings":"","what":"Conclusion","title":"Getting Started with DOYPAColors","text":"DOYPAColors package makes easy apply diverse visually appealing color palettes data visualizations. options list, preview, customize palettes, flexibility enhance plots make engaging. Explore various palettes options find perfect fit data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Jorge Mestre. Author, maintainer.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Mestre J (2024). DOYPAColors: Overthink Palette Colors. R package version 0.0.2, https://jmestret.github.io/DOYPAColors/, https://github.com/jmestret/DOYPAColors.","code":"@Manual{, title = {DOYPAColors: Don't Overthink Your Palette of Colors}, author = {Jorge Mestre}, year = {2024}, note = {R package version 0.0.2, https://jmestret.github.io/DOYPAColors/}, url = {https://github.com/jmestret/DOYPAColors}, }"},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Don't Overthink Your Palette of Colors","text":"Tired agonizing color choices data visualizations? Let DOYPAColors heavy lifting ! R package provides delightful array color palettes, meticulously crafted enhance plots. DOYPAColors, can even let us surprise palette choice, can focus matters βtelling dataβs unique story. Say goodbye color selection headaches hello vibrant, eye-catching visuals! π¨","code":""},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Don't Overthink Your Palette of Colors","text":"install DOYPAColors CRAN, use: development version GitHub, use:","code":"install.packages(\"DOYPAColors\") if (!require(\"devtools\")) { install.packages(\"devtools\") } devtools::install_github(\"jmestret/DOYPAColors\")"},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"how-to-use","dir":"","previous_headings":"","what":"How to use","title":"Don't Overthink Your Palette of Colors","text":"Using DOYPAColors straightforward. Access utilize palettes R plots single line code: can apply palettes ggplot2 plots using functions scale_fill_doypa() scale_color_doypa(): can explore specific palettes fit different types data using preview_pal() function:","code":"library(DOYPAColors) color_palette <- doypa() library(ggplot2) # Create a bar plot with a DOYPAColors palette ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) + geom_boxplot() + scale_fill_doypa(discrete = TRUE) + theme_classic() preview_pal(\"doypa\")"},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"available-palettes","dir":"","previous_headings":"How to use","what":"Available palettes","title":"Don't Overthink Your Palette of Colors","text":"βs visualization available palettes DOYPAColors: advanced usage options, check web get DOYPAColors palettes!","code":""},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"contributing","dir":"","previous_headings":"","what":"Contributing","title":"Don't Overthink Your Palette of Colors","text":"welcome contributions community! new color palette βd like share, βd thrilled consider inclusion DOYPAColors. submit palette: Provide name palette. Specify type palette (sequential, diverging, qualitative). List HEX color codes palette. can submit palette details opening issue pull request GitHub repository. review submission , meets criteria, βll glad include package!","code":""},{"path":"https://jmestret.github.io/DOYPAColors/index.html","id":"how-to-cite","dir":"","previous_headings":"","what":"How to cite","title":"Don't Overthink Your Palette of Colors","text":"use DOYPAColors, please reference R package follows: Jorge Mestre (2023). DOYPAColors: Donβt Overthink Palette Colors. R package version 0.0.2, https://cran.r-project.org/web/packages/DOYPAColors","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"DOYPAColors Palette Selector β doypa","title":"DOYPAColors Palette Selector β doypa","text":"function provides access DOYPAColors palettes, categorized sequential, diverging, qualitative types. can select palette, define number colors, reverse order, interpolate colors gradient.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"DOYPAColors Palette Selector β doypa","text":"","code":"doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, type = \"all\", colorblind = FALSE )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"DOYPAColors Palette Selector β doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n integer specifying number colors return. `NULL`, full palette returned. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"DOYPAColors Palette Selector β doypa","text":"character vector colors.","code":""},{"path":[]},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"DOYPAColors Palette Selector β doypa","text":"","code":"# Get a palette by name colors <- doypa(\"buzz\") print(colors) #> [1] \"#6036a4\" \"#9de26b\" \"#F5C290\" \"#B1B3B3\" \"#FF2400\" \"#ADD8E6\" # Get a random palette colors <- doypa() #> Ready, set, color! We've gone with the 'doypa_qual' palette - no need to sweat it! print(colors) #> [1] \"#bceecb\" \"#91debc\" \"#67cdac\" \"#42ba9b\" \"#7f9d3a\" \"#d47200\" \"#d64b02\" #> [8] \"#ba2314\" \"#880024\" # Get a palette with a specific number of colors colors <- doypa(\"google\", n = 3) print(colors) #> [1] \"#4285F4\" \"#34A853\" \"#FBBC05\" # Reverse the order of the palette colors <- doypa(\"buzz\", reverse = TRUE) print(colors) #> [1] \"#ADD8E6\" \"#FF2400\" \"#B1B3B3\" \"#F5C290\" \"#9de26b\" \"#6036a4\" # Interpolate colors as a gradient colors <- doypa(\"buzz\", n = 10, gradient = TRUE) #> Warning: 'n' larger than the palette length. Returning buzz palette with interpolated colors. print(colors) #> [1] \"#6036A4\" \"#819584\" \"#A6DE6F\" \"#D7CC83\" \"#E5BE97\" \"#C0B6AB\" \"#CA8377\" #> [8] \"#F63313\" \"#DA7366\" \"#ADD8E6\""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a DOYPAColors color palette function β doypa_palette","title":"Create a DOYPAColors color palette function β doypa_palette","text":"function creates function generates color vector `n` colors specified DOYPAColors palette. generated function allows easily create customized color palettes specified number colors.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a DOYPAColors color palette function β doypa_palette","text":"","code":"doypa_palette( palette = NULL, reverse = FALSE, gradient = FALSE, type = \"all\", colorblind = FALSE )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a DOYPAColors color palette function β doypa_palette","text":"palette character string specifying name palette use. `NULL`, random palette selected. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a DOYPAColors color palette function β doypa_palette","text":"function generates vector `n` colors color gradient.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/doypa_palette.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a DOYPAColors color palette function β doypa_palette","text":"","code":"# Create a function for generating colors from the \"buzz\" palette get_buzz_palette <- DOYPAColors:::doypa_palette(palette = \"buzz\") color_palette <- get_buzz_palette(5) print(color_palette) #> [1] \"#6036a4\" \"#9de26b\" \"#F5C290\" \"#B1B3B3\" \"#FF2400\""},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":null,"dir":"Reference","previous_headings":"","what":"List Available DOYPAColors Color Palettes β list_doypa_pals","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"function provides list available DOYPAColors color palettes, categorized type: sequential, diverging, qualitative. helps users explore various color palettes available use visualizations.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"","code":"list_doypa_pals()"},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"named list containing names available color palettes type: \"sequential\", \"diverging\", \"qualitative\".","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/list_doypa_pals.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"List Available DOYPAColors Color Palettes β list_doypa_pals","text":"","code":"# List available DOYPAColors color palettes by type palette_names <- list_doypa_pals() print(palette_names) #> $sequential #> [1] \"blue\" \"deep\" \"blue_purple\" \"purple\" \"yellow_green\" #> [6] \"doypa_qual\" \"regal_blue\" \"blue_red\" \"red\" \"orange\" #> [11] \"pink\" \"gray\" #> #> $diverging #> [1] \"blue2red\" \"purple2green\" \"mir\" #> #> $qualitative #> [1] \"astro\" \"buzz\" \"cyberpunk\" \"earth\" #> [5] \"goofy\" \"google\" \"doypa\" \"high_contrast\" #> [9] \"nature\" \"retro\" \"rookie\" \"snack\" #> [13] \"sunset\" \"tidy\" \"vaporwave\" #>"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":null,"dir":"Reference","previous_headings":"","what":"Preview DOYPAColors Palettes β preview_doypa_pals","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"function generates visual preview DOYPAColors color palettes. helps users explore select color schemes data visualizations displaying palette grid format.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"","code":"preview_doypa_pals(type = \"all\", colorblind = FALSE)"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"type Character string specifying type palettes preview. Options : \"\" (default), \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). colorblind Logical. `TRUE`, restricts preview palettes designed colorblind individuals mind.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"`ggplot` visualization displaying DOYPAColors color palettes, facilitating exploration selection color schemes data visualizations.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_doypa_pals.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Preview DOYPAColors Palettes β preview_doypa_pals","text":"","code":"# Preview all available DOYPAColors palettes preview_doypa_pals() # Preview only sequential DOYPAColors palettes preview_doypa_pals(type = \"seq\") # Preview colorblind-friendly DOYPAColors palettes preview_doypa_pals(colorblind = TRUE)"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":null,"dir":"Reference","previous_headings":"","what":"Preview a Single Color Palette β preview_pal","title":"Preview a Single Color Palette β preview_pal","text":"function generates visual preview DOYPAColors palette multiple plots. includes direct palette preview, scatter plot, bar plot, heatmap, using specified palette.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Preview a Single Color Palette β preview_pal","text":"","code":"preview_pal(palette, seed = NULL)"},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Preview a Single Color Palette β preview_pal","text":"palette character string specifying name palette use. seed optional seed reproducibility random numbers.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Preview a Single Color Palette β preview_pal","text":"`ggplot` object multiple plots arranged grid, showcasing color palette different visualizations.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/preview_pal.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Preview a Single Color Palette β preview_pal","text":"","code":"# Preview a DOYPAColors palette with multiple plots preview_pal(palette = \"buzz\") #> Warning: Computation failed in `stat_binhex()`. #> Caused by error in `compute_group()`: #> ! The package \"hexbin\" is required for `stat_bin_hex()`."},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"function sets color scale ggplot2 using DOYPAColors color palettes, allowing apply palettes discrete continuous data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"","code":"scale_color_doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, discrete = FALSE, type = \"all\", colorblind = FALSE, ... )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n Number colors needed. `NULL`, default number levels discrete scales continuous gradient continuous scales. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. discrete Boolean indicating whether generate discrete continuous palette (default: continuous). type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`. ... Additional parameters passed ggplot2's `scale_color_*` functions.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"`ggplot2` color scale suitable adding `ggplot2` object control color aesthetics.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_color_doypa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_color_doypa","text":"","code":"library(ggplot2) # Discrete data data(iris) disc <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length, color = Species)) + geom_point() + theme_classic() disc <- disc + scale_color_doypa(palette = \"buzz\", discrete = TRUE) print(disc) # Continuous data cont <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length, color = Sepal.Length)) + geom_point() + theme_classic() cont <- cont + scale_color_doypa(palette = \"buzz\") print(cont) # Colorblind-friendly palette disc_colorblind <- ggplot(iris, aes(x = Petal.Width, y = Petal.Length, color = Species)) + geom_point() + theme_classic() disc_colorblind <- disc_colorblind + scale_color_doypa(colorblind = TRUE, discrete = TRUE) print(disc_colorblind) #> We've handpicked the exciting 'doypa' palette for you - no overthinking required!"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"function sets color scale ggplot2 using DOYPAColors color palettes, allowing apply palettes discrete continuous data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"","code":"scale_colour_doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, discrete = FALSE, type = \"all\", colorblind = FALSE, ... )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n Number colors needed. `NULL`, default number levels discrete scales continuous gradient continuous scales. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. discrete Boolean indicating whether generate discrete continuous palette (default: continuous). type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`. ... Additional parameters passed ggplot2's `scale_colour_*` functions.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_colour_doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color scale for ggplot2 with DOYPAColors color palettes β scale_colour_doypa","text":"`ggplot2` color scale suitable adding `ggplot2` object control color aesthetics.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":null,"dir":"Reference","previous_headings":"","what":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"function sets fill scale ggplot2 using DOYPAColors color palettes, allowing use palettes ggplot2 visualizations discrete continuous data.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"","code":"scale_fill_doypa( palette = NULL, n = NULL, reverse = FALSE, gradient = FALSE, discrete = FALSE, type = \"all\", colorblind = FALSE, ... )"},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"palette character string specifying name palette use. `NULL`, random palette selected. n Number colors needed. `NULL`, default number levels discrete scales continuous gradient continuous scales. reverse logical value indicating whether reverse order colors palette. Default `FALSE`. gradient logical value indicating whether interpolate colors gradient `n` colors first last colors palette. `FALSE`, returns first `n` colors palette. discrete Boolean indicating whether generate discrete continuous palette (default: continuous). type character string specifying type palettes select : \"\", \"seq\" (sequential), \"div\" (diverging), \"qual\" (qualitative). Default \"\". colorblind logical value indicating whether restrict palette colorblind-friendly options. Default `FALSE`. ... Additional parameters passed ggplot2's `scale_fill_*` functions.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"`ggplot2` fill scale suitable adding `ggplot2` object control fill aesthetics.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/reference/scale_fill_doypa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fill scale for ggplot2 with DOYPAColors color palettes β scale_fill_doypa","text":"","code":"library(ggplot2) # Discrete data data(iris) disc <- ggplot(iris, aes(x = Species, y = Petal.Length, fill = Species)) + geom_boxplot() + theme_classic() disc <- disc + scale_fill_doypa(palette = \"buzz\", discrete = TRUE) print(disc) # Continuous data cont <- ggplot(faithfuld, aes(waiting, eruptions, fill = density)) + geom_tile() + theme_classic() cont <- cont + scale_fill_doypa(palette = \"buzz\") print(cont) # Colorblind-friendly palette disc_colorblind <- ggplot(iris, aes(x = Species, y = Petal.Length, fill = Species)) + geom_boxplot() + theme_classic() disc_colorblind <- disc_colorblind + scale_fill_doypa(colorblind = TRUE, discrete = TRUE) print(disc_colorblind) #> DOYPAColors stands for Don't Overthink Your Palette of Colors! Your palette for today is: doypa"},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"doypacolors-002","dir":"Changelog","previous_headings":"","what":"DOYPAColors 0.0.2","title":"DOYPAColors 0.0.2","text":"CRAN release: 2024-09-03","code":""},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"major-updates-0-0-2","dir":"Changelog","previous_headings":"","what":"Major Updates","title":"DOYPAColors 0.0.2","text":"Palette Classification: Palettes now categorized three types: sequential, diverging, qualitative. classification helps choose suitable palette data visualization needs using type argument. Updated Arguments: ramp argument replaced gradient intuitive control color interpolation. Enhanced Preview Plots: preview plots redesigned provide comprehensive visualization available palettes. can now better explore compare palettes updated plot types. Colorblind-Friendly Palettes: Introduced dedicated section colorblind-friendly palettes, making easier select palettes accessible viewers. need continue expanding collection.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"other-changes-0-0-2","dir":"Changelog","previous_headings":"","what":"Other Changes","title":"DOYPAColors 0.0.2","text":"Improved Documentation: Updated README vignette detailed usage examples instructions apply customize palettes.","code":""},{"path":"https://jmestret.github.io/DOYPAColors/news/index.html","id":"doypacolors-001","dir":"Changelog","previous_headings":"","what":"DOYPAColors 0.0.1","title":"DOYPAColors 0.0.1","text":"CRAN release: 2023-11-04 First release","code":""}]