Package: gghdx 0.1.4
gghdx: HDX Theme, Scales, and Other Conveniences for 'ggplot2'
A Humanitarian Data Exchange (HDX) theme, color palettes, and scales for 'ggplot2' to allow users to easily follow the HDX visual design guide, including convenience functions for for loading and using the Source Sans 3 font.
Authors:
gghdx_0.1.4.tar.gz
gghdx_0.1.4.zip(r-4.5)gghdx_0.1.4.zip(r-4.4)gghdx_0.1.4.zip(r-4.3)
gghdx_0.1.4.tgz(r-4.4-any)gghdx_0.1.4.tgz(r-4.3-any)
gghdx_0.1.4.tar.gz(r-4.5-noble)gghdx_0.1.4.tar.gz(r-4.4-noble)
gghdx_0.1.4.tgz(r-4.4-emscripten)gghdx_0.1.4.tgz(r-4.3-emscripten)
gghdx.pdf |gghdx.html✨
gghdx/json (API)
NEWS
# Install 'gghdx' in R: |
install.packages('gghdx', repos = c('https://ocha-dap.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ocha-dap/gghdx/issues
- df_covid - Example COVID-19 dataset
- hdx_color_list - HDX color ramps
Last updated 1 months agofrom:d47f50ae03. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 23 2024 |
R-4.5-win | OK | Oct 23 2024 |
R-4.5-linux | OK | Oct 23 2024 |
R-4.4-win | OK | Oct 23 2024 |
R-4.4-mac | OK | Oct 23 2024 |
R-4.3-win | OK | Oct 23 2024 |
R-4.3-mac | OK | Oct 23 2024 |
Exports:%>%format_number_hdxgeom_label_hdxgeom_text_hdxgghdxgghdx_resetggplot2_geom_defaultshdx_color_nameshdx_colorshdx_colour_nameshdx_colourshdx_display_palhdx_geom_defaultshdx_hexhdx_pal_discretehdx_pal_grayhdx_pal_minthdx_pal_sapphirehdx_pal_tomatolabel_number_hdxload_source_sans_3scale_color_gradient_hdxscale_color_gradient_hdx_mintscale_color_gradient_hdx_sapphirescale_color_gradient_hdx_tomatoscale_color_gradient2_hdxscale_color_hdx_discretescale_color_hdx_grayscale_color_hdx_greyscale_color_hdx_mintscale_color_hdx_sapphirescale_color_hdx_tomatoscale_colour_gradient_hdxscale_colour_gradient_hdx_mintscale_colour_gradient_hdx_sapphirescale_colour_gradient_hdx_tomatoscale_colour_gradient2_hdxscale_colour_hdx_discretescale_colour_hdx_grayscale_colour_hdx_greyscale_colour_hdx_mintscale_colour_hdx_sapphirescale_colour_hdx_tomatoscale_fill_gradient_hdxscale_fill_gradient_hdx_mintscale_fill_gradient_hdx_sapphirescale_fill_gradient_hdx_tomatoscale_fill_gradient2_hdxscale_fill_hdx_discretescale_fill_hdx_grayscale_fill_hdx_greyscale_fill_hdx_mintscale_fill_hdx_sapphirescale_fill_hdx_tomatoscale_y_continuous_hdxscale_y_log10_hdxscale_y_reverse_hdxscale_y_sqrt_hdxtheme_hdx
Dependencies:clicolorspacedplyrfansifarvergenericsggplot2ggthemesgluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpurrrR6RColorBrewerrlangscalesshowtextshowtextdbstringistringrsysfontstibbletidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Example COVID-19 dataset | df_covid |
Text | geom_label_hdx geom_text_hdx |
Set HDX theme and aesthetics | gghdx gghdx_reset |
Default ggplot2 geometry aesthetics | ggplot2_geom_defaults |
HDX color ramps | hdx_color_list |
Hex values for HDX colors | hdx_colors hdx_color_names hdx_colours hdx_colour_names hdx_hex |
Display HDX palette | hdx_display_pal |
Default HDX geometry aesthetics | hdx_geom_defaults |
HDX color palette (discrete) | hdx_pal_discrete hdx_pal_gray hdx_pal_mint hdx_pal_sapphire hdx_pal_tomato |
Format and labels numbers in HDX key figures style | format_number_hdx label_number_hdx |
Load and use Source Sans 3 | load_source_sans_3 |
HDX color scales | scale_color_gradient2_hdx scale_color_gradient_hdx scale_color_gradient_hdx_mint scale_color_gradient_hdx_sapphire scale_color_gradient_hdx_tomato scale_color_hdx_discrete scale_color_hdx_gray scale_color_hdx_grey scale_color_hdx_mint scale_color_hdx_sapphire scale_color_hdx_tomato scale_colour_gradient2_hdx scale_colour_gradient_hdx scale_colour_gradient_hdx_mint scale_colour_gradient_hdx_sapphire scale_colour_gradient_hdx_tomato scale_colour_hdx_discrete scale_colour_hdx_gray scale_colour_hdx_grey scale_colour_hdx_mint scale_colour_hdx_sapphire scale_colour_hdx_tomato scale_fill_gradient2_hdx scale_fill_gradient_hdx scale_fill_gradient_hdx_mint scale_fill_gradient_hdx_sapphire scale_fill_gradient_hdx_tomato scale_fill_hdx_discrete scale_fill_hdx_gray scale_fill_hdx_grey scale_fill_hdx_mint scale_fill_hdx_sapphire scale_fill_hdx_tomato |
Position scales for continuous y data | scale_y_continuous_hdx scale_y_log10_hdx scale_y_reverse_hdx scale_y_sqrt_hdx |
ggplot color theme based on HDX visual design guide | theme_hdx |