diff --git a/pkgdown.yml b/pkgdown.yml
index af770ecfc..48f62016f 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -7,7 +7,7 @@ articles:
3_demo_light: 3_demo_light.html
4_demo_dark: 4_demo_dark.html
ggblanket: ggblanket.html
-last_built: 2024-07-04T02:27Z
+last_built: 2024-07-04T02:33Z
urls:
reference: https://davidhodge931.github.io/ggblanket/reference
article: https://davidhodge931.github.io/ggblanket/articles
diff --git a/reference/set_blanket.html b/reference/set_blanket.html
index 150eb11d3..8653a2424 100644
--- a/reference/set_blanket.html
+++ b/reference/set_blanket.html
@@ -1,5 +1,17 @@
-
Set a style — set_blanket • ggblanketSet a style — set_blanket • ggblanket
@@ -58,7 +70,10 @@
-
Set a style by setting a mode, a series of geom and annotate aesthetic defaults, and a col_palette for discrete and continuous scales.
+
Set a style by setting a:
mode
+geom defaults, including for annotation
+col_palettes for discrete, continuous and ordinal scales.
+
Alternatively, use the weave_*
functions to only apply a subset of these.
diff --git a/search.json b/search.json
index 095d5b2ab..7a4c7bfa1 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://davidhodge931.github.io/ggblanket/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 David Hodge Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Go further","text":"article demonstrate random assortment content, including advanced. Change stat layer Change position layer Use + *_mode_* axis-lines gridlines wanted Reorder /reverse categorical variables Drop unused categorical variable values Transform scales \"log\" etc Correct default orientation Avoid ‘symmetric’ scale Avoid mode side-effects Change *_position positional axes Add contrasting dark light text polygons Use opacity emphasise/de-emphasise Zoom scales Use delayed evaluation Rescale diverging col scale Add legend within panel","code":"library(dplyr) library(tidyr) library(forcats) library(stringr) library(ggplot2) library(scales) library(ggblanket) library(patchwork) library(palmerpenguins) set_blanket() penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\")))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"change-the-stat-of-the-layer","dir":"Articles","previous_headings":"Overview","what":"1. Change the stat of the layer","title":"Go further","text":"default stat gg_* function can changed.","code":"penguins2 |> gg_pointrange( stat = \"summary\", x = species, y = flipper_length_mm, ) library(ggforce) ggplot2::economics |> slice_head(n = 35) |> gg_path( stat = \"bspline\", n = 100, x = date, y = unemploy, y_label = \"Unemployment\", linewidth = 1, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"change-the-position-of-the-layer","dir":"Articles","previous_headings":"Overview","what":"2. Change the position of the layer","title":"Go further","text":"default position gg_* function can changed.","code":"penguins2 |> gg_point( position = ggbeeswarm::position_quasirandom(), x = sex, y = flipper_length_mm, col = sex, ) + theme(legend.position = \"none\")"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"use-_mode_-where-axis-lines-and-gridlines-are-not-as-wanted","dir":"Articles","previous_headings":"Overview","what":"3. Use + *_mode_* where axis-lines and gridlines are not as wanted","title":"Go further","text":"Sometimes plot might guess removal gridlines axis-line/ticks incorrectly. situations, can + *_mode_* plot, remove whatever want.","code":"msleep |> gg_point( x = bodywt, y = brainwt, col = vore, col_labels = str_to_sentence, x_transform = \"log10\", y_transform = \"log10\", ) + light_mode_r() + guides( x = guide_axis_logticks(), y = guide_axis_logticks(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"reorder-andor-reverse-categorical-variables","dir":"Articles","previous_headings":"Overview","what":"4. Reorder and/or reverse categorical variables","title":"Go further","text":"ggblanket requires unquoted variables x, y, col, facet, facet2 alpha. can often manipulate data prior plotting achieve want (e.g. using tidyr::drop_na, forcats::fct_rev /forcats::fct_reorder).","code":"p1 <- diamonds |> count(color) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nDefault order\" ) p2 <- diamonds |> count(color) |> mutate(color = fct_rev(fct_reorder(color, n))) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nRe-orderered\" ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"drop-unused-categorical-variable-values","dir":"Articles","previous_headings":"Overview","what":"5. Drop unused categorical variable values","title":"Go further","text":"ggblanket keeps unused factor levels plot. users wish drop unused levels likewise data prior plotting using forcats::fct_drop.","code":"p1 <- diamonds |> count(color) |> filter(color %in% c(\"E\", \"G\", \"I\")) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nUnused levels kept\", ) p2 <- diamonds |> count(color) |> filter(color %in% c(\"E\", \"G\", \"I\")) |> mutate(color = forcats::fct_drop(color)) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nUnused levels dropped\", ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"transform-scales-to-log-etc","dir":"Articles","previous_headings":"Overview","what":"6. Transform scales to \"log\" etc","title":"Go further","text":"Transform objects (e.g. transform_log() character strings can used transform scales - including combining .","code":"p1 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), subtitle = \"\\nDefault\", ) p2 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), y_transform = \"reverse\", subtitle = \"\\nReverse\", ) p3 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_transform = \"log10\", subtitle = \"\\nLog10\", ) p4 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_transform = c(\"log10\", \"reverse\"), subtitle = \"\\nLog10 & Reverse\", ) (p1 + p2) / (p3 + p4)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"correct-the-default-orientation","dir":"Articles","previous_headings":"Overview","what":"7. Correct the default orientation","title":"Go further","text":"gg_* function guesses *_orientation plot determine make continuous axes side-effects provided mode. guesses incorrectly, use either x_orientation y_orientation argument.","code":"p1 <- penguins2 |> gg_point( x = bill_depth_mm, y = bill_length_mm, subtitle = \"\\nDefault orientation\", ) p2 <- penguins2 |> gg_point( x = bill_depth_mm, y = bill_length_mm, y_orientation = TRUE, subtitle = \"\\nCorrected orientation\", ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"avoid-the-symmetric-scale","dir":"Articles","previous_headings":"Overview","what":"8. Avoid the ‘symmetric’ scale","title":"Go further","text":"Symmetric scales can turned using *_symmetric arguments.","code":"p1 <- penguins2 |> gg_pointrange( x = sex, y = bill_length_mm, stat = \"summary\", position = position_dodge(), x_labels = \\(x) str_sub(x, 1, 1), subtitle = \"\\ny_symmetric = NULL\", ) + labs(y = NULL) p2 <- penguins2 |> gg_pointrange( x = sex, y = bill_length_mm, stat = \"summary\", position = position_dodge(), x_labels = \\(x) str_sub(x, 1, 1), y_symmetric = FALSE, subtitle = \"\\ny_symmetric = FALSE,\", ) + labs(y = NULL) p3 <- penguins2 |> gg_col( x = sex, y = bill_length_mm, stat = \"summary\", position = position_dodge(), width = 0.5, x_labels = \\(x) str_sub(x, 1, 1), y_symmetric = FALSE, subtitle = \"\\ny_symmetric = FALSE,\", ) + labs(y = NULL) p1 + p2 + p3"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"avoid-the-mode-side-effects","dir":"Articles","previous_headings":"Overview","what":"9. Avoid the mode side-effects","title":"Go further","text":"*_orientation = TRUE, remove relevant axis line/ticks gridlines mode theme. can avoid +-ing theme plot, instead adding mode argument.","code":"p1 <- penguins2 |> gg_jitter( x = sex, y = bill_depth_mm, subtitle = \"\\nmode = light_more_r()\", ) p2 <- penguins2 |> gg_jitter( x = sex, y = bill_depth_mm, subtitle = \"\\n+ light_more_r()\", ) + light_mode_r() p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"change-the-_position-of-positional-axes","dir":"Articles","previous_headings":"Overview","what":"10. Change the *_position of positional axes","title":"Go further","text":"Positional axes can changed using *_position. Note x_position = \"top\", caption must added modified make work nicely *_mode_* theme.","code":"economics |> gg_line( x = date, y = unemploy, col = date, y_position = \"right\", x_position = \"top\", caption = \"\", title = \"Unemployment\", subtitle = \"1967\\u20132015\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"add-contrasting-dark-or-light-text-on-polygons","dir":"Articles","previous_headings":"Overview","what":"11. Add contrasting dark or light text on polygons","title":"Go further","text":"Text polygons can coloured dark light colour determined based underlying polygon colour using !!!aes_contrast(). method developed Teun van den Brand (@teunbrand).","code":"penguins2 |> count(species, sex) |> gg_col( x = sex, y = n, col = species, position = position_dodge2(preserve = \"single\"), width = 0.75, ) + geom_text( mapping = aes(label = n, !!!aes_contrast()), position = position_dodge2(width = 0.75, preserve = \"single\"), vjust = 1.33, show.legend = FALSE, ) penguins2 |> count(species, sex) |> gg_col( position = position_dodge2(preserve = \"single\"), x = n, y = sex, col = species, width = 0.75, mode = dark_mode_r(), ) + geom_text( mapping = aes(label = n, !!!aes_contrast(\"dark\")), position = position_dodge2(width = 0.75, preserve = \"single\"), hjust = 1.25, show.legend = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"use-opacity-to-emphasisede-emphasise","dir":"Articles","previous_headings":"Overview","what":"12. Use opacity to emphasise/de-emphasise","title":"Go further","text":"Use opacity mapping = aes(alpha = ...), col = ..., col_palette emphasise/de-emphasise parts visualisation.","code":"p1 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), colour = alpha(orange, 0.33), fill = orange, alpha = 0.1, subtitle = \"\\nOpacity fill 0.1 & outline 0.33\" ) p2 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, col = sex, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), col_palette = c(orange, \"#78909C\"), subtitle = \"\\ncol variable\" ) p3 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, col = sex, mapping = aes(alpha = sex), x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), col_palette = c(orange, \"#78909C\"), subtitle = \"\\ncol and alpha variable\", ) + guides(colour = \"none\", fill = \"none\", alpha = \"none\") + scale_alpha_manual(values = c(0.5, 0.1)) p4 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, col = sex, mapping = aes(alpha = sex), x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), col_palette = c(orange, alpha(\"#78909C\", 0.25)), subtitle = \"\\ncol and alpha variable & outline opacity\", ) + scale_alpha_manual(values = c(0.5, 0.1)) (p1 + p2) / (p3 + p4)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"zoom-in-or-out-on-scales","dir":"Articles","previous_headings":"Overview","what":"13. Zoom in or out on scales","title":"Go further","text":"*_limits arguments ggblanket. Instead, users use combination filtering data, adding *_expand_limits coord = coord_cartesian(xlim = ..., ylim = ...) arguments etc.","code":"#To Zoom out, se *_expand_limits: penguins |> gg_smooth( x = body_mass_g, y = bill_depth_mm, se = TRUE, x_expand_limits = c(0), y_expand_limits = c(10, 25), ) #To zoom-in when the stat equals \"identity\", use dplyr::filter penguins |> filter(bill_depth_mm < 15) |> gg_point( x = bill_depth_mm, y = body_mass_g, ) #To zoom-in when the stat does _not_ equal \"identity\", use coord_cartesian #Then either recreate the breaks, or turn off the symmetric axis penguins |> gg_smooth( x = body_mass_g, y = bill_depth_mm, se = TRUE, coord = coord_cartesian(ylim = c(14.8, 15)), y_breaks = scales::breaks_width(0.05), # y_symmetric = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"use-delayed-evaluation","dir":"Articles","previous_headings":"Overview","what":"14. Use delayed evaluation","title":"Go further","text":"mapping argument can used delayed evaluation ggplot2::after_stat function.","code":"penguins2 |> gg_histogram( x = flipper_length_mm, mapping = aes(y = after_stat(density)), facet = species, ) faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, mapping = aes(colour = after_stat(level)), bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"rescale-a-diverging-col-scale","dir":"Articles","previous_headings":"Overview","what":"15. Rescale a diverging col scale","title":"Go further","text":"Use col_rescale rescale diverging scale around central point.","code":"rescale_vctr <- sort(c(range(mpg$cty), 15)) mpg |> gg_point( x = displ, y = hwy, col = cty, col_palette = c(navy, teal, \"white\", orange, red), col_rescale = scales::rescale(rescale_vctr), col_breaks = scales::breaks_width(5), mode = dark_mode_r(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"add-a-legend-within-the-panel","dir":"Articles","previous_headings":"Overview","what":"16. Add a legend within the panel","title":"Go further","text":"","code":"set_blanket() penguins2 |> gg_histogram( x = flipper_length_mm, col = species, mode = light_mode_r(), ) + theme(legend.position = \"inside\") + theme(legend.position.inside = c(1, 0.975)) + theme(legend.justification = c(1, 1))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Extensions","text":"article demonstrate fantastic ggplot2 extension packages. Note, alternative use ggplot2 code directly instead. may easier depending familiarity ggblanket/ggplot2 relevant extension package. set_blanket() function used get lot ggblanket style also works ggplot2.","code":"library(dplyr) library(stringr) library(ggplot2) library(scales) library(ggblanket) library(patchwork) library(palmerpenguins) set_blanket() penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\")))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"patchwork","dir":"Articles","previous_headings":"Overview","what":"patchwork","title":"Extensions","text":"patchwork package enables plots patched together. convenient hack add panel centred title can add facet_wrap layer character title string facets argument. Otherwise need modify margins","code":"p1 <- mtcars |> gg_point( x = mpg, y = disp, ) + facet_wrap(~\"Plot 1\") p2 <- mtcars |> gg_boxplot( x = gear, y = disp, group = gear, width = 0.5, ) + facet_wrap(~\"Plot 2\") p3 <- mtcars |> gg_smooth( x = disp, y = qsec, ) + facet_wrap(~\"Plot 3\") (p1 + p2) / p3 + plot_annotation( title = \"A collection of plots patched together\", subtitle = \"Works so nice!\", theme = light_mode_r() + theme( plot.title = element_text(margin = margin(t = -11)), plot.subtitle = element_text(margin = margin(t = 5.5)), ) )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"marquee","dir":"Articles","previous_headings":"Overview","what":"marquee","title":"Extensions","text":"marquee package supports using markdown text.","code":"penguins2 |> gg_point( x = bill_depth_mm, y = bill_length_mm, col = species, title = \"**{.#0095a8ff Adelie}**, **{.#ffa600ff Chinstrap}**, *and* **{.#003f5cff Gentoo}** penguin species\", ) + theme(legend.position = \"none\") + theme(plot.title = marquee::element_marquee())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"showtext","dir":"Articles","previous_headings":"Overview","what":"showtext","title":"Extensions","text":"showtext package enables use different fonts plots. *_mode_* theme functions provide base_family argument.","code":"head(sysfonts::font_families_google()) #> [1] \"ABeeZee\" \"Abel\" \"Abhaya Libre\" \"Abril Fatface\" #> [5] \"Aclonica\" \"Acme\" sysfonts::font_add_google(\"Covered By Your Grace\", \"grace\") sysfonts::font_add_google('Roboto Slab', 'roboto_slab') sysfonts::font_add_google('Syne Mono', 'syne') showtext::showtext_auto(enable = TRUE) penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = sex, facet = species, title = \"penguins2 body mass by flipper length\", subtitle = \"Palmer Archipelago, Antarctica\", caption = \"Source: Gorman, 2020\", mode = light_mode_r(base_family = \"grace\"), ) + theme( plot.title = element_text(family = \"roboto_slab\"), plot.subtitle = element_text(family = \"syne\") ) showtext::showtext_auto(enable = FALSE)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"gghighlight","dir":"Articles","previous_headings":"Overview","what":"gghighlight","title":"Extensions","text":"gghighlight package enables geoms parts thereof highlighted. gg_* function builds scale data thinks within panel. Therefore situations, must taken account ensure scale builds correctly.","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, ) + gghighlight::gghighlight(body_mass_g >= 5000) penguins2 |> gg_histogram( x = flipper_length_mm, col = species, x_breaks = breaks_extended(n = 4), ) + #build the scale for all data facet_wrap(~species) + #then add facet layer gghighlight::gghighlight()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggforce","dir":"Articles","previous_headings":"Overview","what":"ggforce","title":"Extensions","text":"ggforce package includes numerous extra geoms, stats etc.","code":"library(ggforce) geom_bspline() #> geom_path: arrow = NULL, lineend = butt, na.rm = FALSE #> stat_bspline: na.rm = FALSE, n = 100, type = clamped #> position_identity economics |> slice_head(n = 35) |> gg_path( stat = \"bspline\", n = 100, type = \"clamped\", x = date, y = unemploy, linewidth = 1, y_label = \"Unemployment\", ) geom_mark_hull() #> geom_mark_hull: na.rm = FALSE, expand = 5, radius = 2.5, concavity = 2, label.margin = c(2, 2, 2, 2), label.width = NULL, label.minwidth = 50, label.fontsize = 12, label.family = , label.lineheight = 1, label.fontface = c(\"bold\", \"plain\"), label.hjust = 0, label.fill = white, label.colour = black, label.buffer = 10, con.colour = black, con.size = 0.5, con.type = elbow, con.linetype = 1, con.border = one, con.cap = 3, con.arrow = NULL #> stat_identity: na.rm = FALSE #> position_identity penguins2 |> gg_blanket( geom = \"mark_hull\", x = flipper_length_mm, y = body_mass_g, col = species, coord = coord_cartesian(), ) + geom_point()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggrepel","dir":"Articles","previous_headings":"Overview","what":"ggrepel","title":"Extensions","text":"ggrepel package can used neatly avoid overlapping labels.","code":"library(ggrepel) geom_text_repel() #> geom_text_repel: parse = FALSE, na.rm = FALSE, box.padding = 0.25, point.padding = 1e-06, min.segment.length = 0.5, arrow = NULL, force = 1, force_pull = 1, max.time = 0.5, max.iter = 10000, max.overlaps = 10, nudge_x = 0, nudge_y = 0, xlim = c(NA, NA), ylim = c(NA, NA), direction = both, seed = NA, verbose = FALSE #> stat_identity: na.rm = FALSE #> position_identity mtcars |> tibble::rownames_to_column(\"car\") |> filter(wt > 2.75, wt < 3.45) |> gg_point( x = wt, y = mpg, label = car, ) + geom_text_repel()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggbeeswarm","dir":"Articles","previous_headings":"Overview","what":"ggbeeswarm","title":"Extensions","text":"ggbeeswarm package enables beeswarm plots.","code":"library(ggbeeswarm) geom_beeswarm() #> geom_point: na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_beeswarm geom_quasirandom() #> geom_point: na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_quasirandom p1 <- penguins2 |> gg_point( position = position_beeswarm(), x = sex, y = flipper_length_mm, col = sex, x_labels = \\(x) str_to_upper(str_sub(x, 1, 1)), subtitle = \"\\nBeeswarm\", ) + theme(legend.position = \"none\") p2 <- penguins2 |> gg_point( position = ggbeeswarm::position_quasirandom(), x = sex, y = flipper_length_mm, col = sex, x_labels = \\(x) str_to_upper(str_sub(x, 1, 1)), subtitle = \"\\nQuasirandom\", ) + theme(legend.position = \"none\") p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggridges","dir":"Articles","previous_headings":"Overview","what":"ggridges","title":"Extensions","text":"ggridges package enables ridgeline plots.","code":"library(ggridges) geom_density_ridges() #> geom_density_ridges: na.rm = FALSE, panel_scaling = TRUE #> stat_density_ridges: na.rm = FALSE #> position_points_sina ggridges::Catalan_elections |> rename_with(snakecase::to_snake_case) |> mutate(year = factor(year)) |> gg_blanket( geom = \"density_ridges\", stat = \"density_ridges\", coord = coord_cartesian(xlim = c(0, 100)), x = percent, y = year, col = option, colour = \"white\", y_expand = expansion(c(0, 0.125)), alpha = 0.9, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggdist","dir":"Articles","previous_headings":"Overview","what":"ggdist","title":"Extensions","text":"ggdist package enables visualisation uncertainty.","code":"library(ggdist) library(distributional) geom_slabinterval() #> geom_slabinterval: orientation = NA, normalize = all, fill_type = segments, interval_size_domain = c(1, 6), interval_size_range = c(0.6, 1.4), fatten_point = 1.8, arrow = NULL, show_slab = TRUE, show_point = TRUE, show_interval = TRUE, subguide = none, na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity set.seed(123) data.frame( distribution = c(\"Gamma(2,1)\", \"Normal(5,1)\", \"Mixture\"), values = c( dist_gamma(2, 1), dist_normal(5, 1), dist_mixture( dist_gamma(2, 1), dist_normal(5, 1), weights = c(0.4, 0.6)) )) |> gg_blanket( geom = \"slabinterval\", stat = \"slabinterval\", y = distribution, mapping = aes(dist = values), colour = blue, fill = blue, alpha = 0.6, y_expand = c(0.05, 0.05), # show_slab = FALSE, # show_interval = FALSE, # side = \"both\", ) + theme(legend.position = \"none\") geom_lineribbon() #> geom_lineribbon: step = FALSE, orientation = NA, na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity set.seed(123) tibble(x = 1:10) |> group_by(across(everything())) |> do(tibble(y = rnorm(100, .$x))) |> median_qi(.width = c(0.5, 0.8, 0.95)) |> mutate(.width = factor(.width)) |> gg_blanket( geom = \"lineribbon\", x = x, y = y, ymin = .lower, ymax = .upper, col = .width, colour = viridis::mako(n = 9)[c(1)], col_legend_rev = TRUE, col_palette = viridis::mako(n = 9)[c(4,6,9)], )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggdensity","dir":"Articles","previous_headings":"Overview","what":"ggdensity","title":"Extensions","text":"ggdensity package provides visualizations density estimates.","code":"library(ggdensity) geom_hdr() #> geom_hdr: na.rm = FALSE #> stat_hdr: na.rm = FALSE #> position_identity set.seed(123) data.frame( x = rnorm(1000), y = rnorm(1000), z = c(rep(\"A\", times = 500), rep(\"B\", times = 500)) ) |> gg_blanket( geom = \"hdr\", stat = \"hdr\", x = x, y = y, colour = NA, y_symmetric = FALSE, ) + guides(colour = FALSE, fill = FALSE) set.seed(123) data.frame( x = rnorm(1000), y = rnorm(1000), z = c(rep(\"A\", times = 500), rep(\"B\", times = 500)) ) |> gg_blanket( geom = \"hdr\", stat = \"hdr\", x = x, y = y, col = z, facet = z, colour = NA, y_symmetric = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggpattern","dir":"Articles","previous_headings":"Overview","what":"ggpattern","title":"Extensions","text":"","code":"library(ggpattern) penguins2 |> group_by(species, sex) |> summarise(across(body_mass_g, \\(x) mean(x))) |> tidyr::drop_na() |> labelled::copy_labels_from(penguins2) |> gg_blanket( geom = \"col_pattern\", position = \"dodge\", y = species, x = body_mass_g, col = sex, mapping = aes(pattern = sex), width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"paletteer","dir":"Articles","previous_headings":"Overview","what":"paletteer","title":"Extensions","text":"paletteer package provides access palettes within R.","code":"library(paletteer) p1 <- penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, col_palette = paletteer_d(\"RColorBrewer::Dark2\"), x_breaks = breaks_extended(n = 4), ) + theme(legend.position = \"none\") p2 <- penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = bill_depth_mm, col_palette = paletteer_c(\"viridis::rocket\", 9), x_breaks = breaks_extended(n = 4), ) + theme(legend.position = \"none\") p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggblend","dir":"Articles","previous_headings":"Overview","what":"ggblend","title":"Extensions","text":"ggblend package provides blending colours. must use graphics device supports blending.","code":"p1 <- penguins2 |> gg_density( x = flipper_length_mm, col = species, y_symmetric = FALSE, ) + facet_wrap(~\"Normal\") + ggeasy::easy_remove_x_axis() + ggeasy::easy_remove_y_axis() p2 <- penguins2 |> gg_blanket( stat = \"density\", x = flipper_length_mm, col = species, y_symmetric = FALSE, ) + facet_wrap(~\"Blended\") + geom_density(alpha = 0.6) |> ggblend::blend(blend = \"multiply\") + ggeasy::easy_remove_x_axis() + ggeasy::easy_remove_y_axis() p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggh4x","dir":"Articles","previous_headings":"Overview","what":"ggh4x","title":"Extensions","text":"ggh4x package includes enhanced facet functionality.","code":"iris |> rename_with(\\(x) snakecase::to_snake_case(x)) |> mutate(across(species, \\(x) str_to_sentence(x))) |> mutate(size = if_else(species == \"Setosa\", \"Short Leaves\", \"Long Leaves\")) |> gg_point( x = sepal_width, y = sepal_length, x_breaks = breaks_extended(n = 4), ) + ggh4x::facet_nested( cols = vars(size, species), nest_line = TRUE, solo_line = TRUE, ) + theme(strip.text.x = element_text(margin = margin(t = 2.5, b = 5)))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggeasy","dir":"Articles","previous_headings":"Overview","what":"ggeasy","title":"Extensions","text":"ggeasy package provides lot support easily modifying themes. Removing axes gridlines often useful.","code":"library(ggeasy) penguins2 |> gg_jitter( x = species, y = body_mass_g, col = sex, ) + light_mode_t() + easy_remove_y_gridlines() + easy_remove_x_axis(what = c(\"line\", \"ticks\")) + easy_remove_legend_title()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Demo: light mode","text":"article demonstrate wrapper function.","code":"library(dplyr) library(ggplot2) library(scales) library(ggblanket) library(palmerpenguins) set_blanket() penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\"))) |> tidyr::drop_na(sex) experiment <- data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6)) |> labelled::set_variable_labels( trt = \"Treatment\", resp = \"Response\" )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_area","dir":"Articles","previous_headings":"Overview","what":"gg_area","title":"Demo: light mode","text":"","code":"economics |> gg_area( x = date, y = unemploy, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_bar","dir":"Articles","previous_headings":"Overview","what":"gg_bar","title":"Demo: light mode","text":"","code":"penguins2 |> gg_bar( position = position_dodge(preserve = \"single\"), y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_bin_2d","dir":"Articles","previous_headings":"Overview","what":"gg_bin_2d","title":"Demo: light mode","text":"","code":"diamonds |> gg_bin_2d( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_boxplot","dir":"Articles","previous_headings":"Overview","what":"gg_boxplot","title":"Demo: light mode","text":"","code":"penguins2 |> gg_boxplot( x = flipper_length_mm, y = sex, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_col","dir":"Articles","previous_headings":"Overview","what":"gg_col","title":"Demo: light mode","text":"","code":"penguins2 |> group_by(sex, species) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> labelled::copy_labels_from(penguins2) |> gg_col( position = position_dodge(preserve = \"single\"), x = flipper_length_mm, y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_contour","dir":"Articles","previous_headings":"Overview","what":"gg_contour","title":"Demo: light mode","text":"","code":"faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_contour_filled","dir":"Articles","previous_headings":"Overview","what":"gg_contour_filled","title":"Demo: light mode","text":"","code":"faithfuld |> gg_contour_filled( x = waiting, y = eruptions, z = density, bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_crossbar","dir":"Articles","previous_headings":"Overview","what":"gg_crossbar","title":"Demo: light mode","text":"","code":"experiment |> gg_crossbar( x = trt, y = resp, ymin = lower, ymax = upper, col = group, width = 0.5, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_density","dir":"Articles","previous_headings":"Overview","what":"gg_density","title":"Demo: light mode","text":"","code":"penguins2 |> gg_density( x = flipper_length_mm, col = species, mode = light_mode_t(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_density_2d","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d","title":"Demo: light mode","text":"","code":"faithful |> gg_density_2d( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_density_2d_filled","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d_filled","title":"Demo: light mode","text":"","code":"faithful |> gg_density_2d_filled( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_errorbar","dir":"Articles","previous_headings":"Overview","what":"gg_errorbar","title":"Demo: light mode","text":"","code":"experiment |> gg_errorbar( x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", width = 0.1, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_freqpoly","dir":"Articles","previous_headings":"Overview","what":"gg_freqpoly","title":"Demo: light mode","text":"","code":"penguins2 |> gg_freqpoly( x = flipper_length_mm, col = sex, mode = light_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_function","dir":"Articles","previous_headings":"Overview","what":"gg_function","title":"Demo: light mode","text":"","code":"gg_function( fun = \\(x) dnorm(x, mean = 0, sd = 5), x_expand_limits = qnorm(p = c(0.005, 0.995), mean = 0, sd = 5), x_label = \"X\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_hex","dir":"Articles","previous_headings":"Overview","what":"gg_hex","title":"Demo: light mode","text":"","code":"diamonds |> gg_hex( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_histogram","dir":"Articles","previous_headings":"Overview","what":"gg_histogram","title":"Demo: light mode","text":"","code":"penguins2 |> gg_histogram( x = flipper_length_mm, col = sex, facet = species, bins = 50, mode = light_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_jitter","dir":"Articles","previous_headings":"Overview","what":"gg_jitter","title":"Demo: light mode","text":"","code":"set.seed(123) penguins2 |> gg_jitter( position = position_jitter(), x = species, y = body_mass_g, col = flipper_length_mm, y_expand_limits = 0, col_steps = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_label","dir":"Articles","previous_headings":"Overview","what":"gg_label","title":"Demo: light mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_label( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_line","dir":"Articles","previous_headings":"Overview","what":"gg_line","title":"Demo: light mode","text":"","code":"economics |> gg_line( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_linerange","dir":"Articles","previous_headings":"Overview","what":"gg_linerange","title":"Demo: light mode","text":"","code":"experiment |> gg_linerange( position = position_dodge(width = 0.2), x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_path","dir":"Articles","previous_headings":"Overview","what":"gg_path","title":"Demo: light mode","text":"","code":"economics |> mutate(unemploy_rate = unemploy / pop) |> gg_path( x = unemploy_rate, y = psavert, x_label = \"Unemployment rate\", y_expand_limits = 0, y_label = \"Personal savings rate\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_point","dir":"Articles","previous_headings":"Overview","what":"gg_point","title":"Demo: light mode","text":"","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_pointrange","dir":"Articles","previous_headings":"Overview","what":"gg_pointrange","title":"Demo: light mode","text":"","code":"experiment |> gg_pointrange( position = position_dodge(width = 0.2), x = trt, y = resp, col = group, ymin = lower, ymax = upper, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_polygon","dir":"Articles","previous_headings":"Overview","what":"gg_polygon","title":"Demo: light mode","text":"","code":"ids <- factor(c(\"1.1\", \"2.1\", \"1.2\", \"2.2\", \"1.3\", \"2.3\")) values <- data.frame( id = ids, value = c(3, 3.1, 3.1, 3.2, 3.15, 3.5) ) positions <- data.frame( id = rep(ids, each = 4), x = c(2, 1, 1.1, 2.2, 1, 0, 0.3, 1.1, 2.2, 1.1, 1.2, 2.5, 1.1, 0.3, 0.5, 1.2, 2.5, 1.2, 1.3, 2.7, 1.2, 0.5, 0.6, 1.3), y = c(-0.5, 0, 1, 0.5, 0, 0.5, 1.5, 1, 0.5, 1, 2.1, 1.7, 1, 1.5, 2.2, 2.1, 1.7, 2.1, 3.2, 2.8, 2.1, 2.2, 3.3, 3.2) ) datapoly <- merge(values, positions, by = c(\"id\")) datapoly |> gg_polygon( x = x, y = y, col = value, group = id, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_qq","dir":"Articles","previous_headings":"Overview","what":"gg_qq","title":"Demo: light mode","text":"","code":"penguins2 |> gg_qq( sample = body_mass_g, facet = species, coord = coord_cartesian(clip = \"on\"), ) + geom_qq_line()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_quantile","dir":"Articles","previous_headings":"Overview","what":"gg_quantile","title":"Demo: light mode","text":"","code":"penguins2 |> gg_quantile( x = flipper_length_mm, y = body_mass_g, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_raster","dir":"Articles","previous_headings":"Overview","what":"gg_raster","title":"Demo: light mode","text":"","code":"faithfuld |> gg_raster( x = waiting, y = eruptions, col = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_rect","dir":"Articles","previous_headings":"Overview","what":"gg_rect","title":"Demo: light mode","text":"","code":"data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(c(rep(1:4, each = 2), 5, NA)), w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)) |> mutate( xmin = x - w / 2, xmax = x + w / 2, ymin = y, ymax = y + 1 ) |> gg_rect( xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax, col = z, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_ribbon","dir":"Articles","previous_headings":"Overview","what":"gg_ribbon","title":"Demo: light mode","text":"","code":"data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |> mutate(level_min = level - 1, level_max = level + 1) |> gg_ribbon( x = year, ymin = level_min, ymax = level_max, colour = NA, x_labels = \\(x) x, y_label = \"Level\", ) + geom_line(mapping = aes(x = year, y = level))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_rug","dir":"Articles","previous_headings":"Overview","what":"gg_rug","title":"Demo: light mode","text":"","code":"penguins2 |> gg_rug( x = flipper_length_mm, y = body_mass_g, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_segment","dir":"Articles","previous_headings":"Overview","what":"gg_segment","title":"Demo: light mode","text":"","code":"data.frame(x1 = 2.62, x2 = 3.57, y1 = 21.0, y2 = 15.0) |> gg_segment( x = x1, xend = x2, y = y1, yend = y2, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_sf","dir":"Articles","previous_headings":"Overview","what":"gg_sf","title":"Demo: light mode","text":"","code":"sf::st_read(system.file(\"shape/nc.shp\", package = \"sf\")) |> gg_sf( col = AREA, ) #> Reading layer `nc' from data source #> `/home/runner/work/_temp/Library/sf/shape/nc.shp' using driver `ESRI Shapefile' #> Simple feature collection with 100 features and 14 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965 #> Geodetic CRS: NAD27"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_smooth","dir":"Articles","previous_headings":"Overview","what":"gg_smooth","title":"Demo: light mode","text":"","code":"penguins2 |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, se = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_step","dir":"Articles","previous_headings":"Overview","what":"gg_step","title":"Demo: light mode","text":"","code":"economics |> filter(date > lubridate::ymd(\"2010-01-01\")) |> gg_step( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_text","dir":"Articles","previous_headings":"Overview","what":"gg_text","title":"Demo: light mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_text( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_tile","dir":"Articles","previous_headings":"Overview","what":"gg_tile","title":"Demo: light mode","text":"","code":"penguins2 |> group_by(species, sex) |> summarise(flipper_length_mm = mean(flipper_length_mm, na.rm = TRUE)) |> labelled::copy_labels_from(penguins2) |> gg_tile( x = sex, y = species, col = flipper_length_mm, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_violin","dir":"Articles","previous_headings":"Overview","what":"gg_violin","title":"Demo: light mode","text":"","code":"penguins2 |> gg_violin( x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_blanket","dir":"Articles","previous_headings":"Overview","what":"gg_blanket","title":"Demo: light mode","text":"","code":"penguins2 |> gg_blanket( geom = \"violin\", stat = \"ydensity\", position = \"dodge\", x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Demo: dark mode","text":"article demonstrate wrapper function.","code":"library(dplyr) library(ggplot2) library(scales) library(ggblanket) library(palmerpenguins) set_blanket( mode = dark_mode_r(), annotation_colour = darkness[1], col_palette_d = c(teal, orange, purple, red, pink, navy), col_palette_c = viridis::mako(n = 9), col_palette_o = scales::pal_viridis(option = \"G\"), ) penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\"))) |> tidyr::drop_na(sex) experiment <- data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6)) |> labelled::set_variable_labels( trt = \"Treatment\", resp = \"Response\" )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_area","dir":"Articles","previous_headings":"Overview","what":"gg_area","title":"Demo: dark mode","text":"","code":"economics |> gg_area( x = date, y = unemploy, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_bar","dir":"Articles","previous_headings":"Overview","what":"gg_bar","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_bar( position = position_dodge(preserve = \"single\"), y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_bin_2d","dir":"Articles","previous_headings":"Overview","what":"gg_bin_2d","title":"Demo: dark mode","text":"","code":"diamonds |> gg_bin_2d( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_boxplot","dir":"Articles","previous_headings":"Overview","what":"gg_boxplot","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_boxplot( x = flipper_length_mm, y = sex, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_col","dir":"Articles","previous_headings":"Overview","what":"gg_col","title":"Demo: dark mode","text":"","code":"penguins2 |> group_by(sex, species) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> labelled::copy_labels_from(penguins2) |> gg_col( position = position_dodge(preserve = \"single\"), x = flipper_length_mm, y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_contour","dir":"Articles","previous_headings":"Overview","what":"gg_contour","title":"Demo: dark mode","text":"","code":"faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_contour_filled","dir":"Articles","previous_headings":"Overview","what":"gg_contour_filled","title":"Demo: dark mode","text":"","code":"faithfuld |> gg_contour_filled( x = waiting, y = eruptions, z = density, bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_crossbar","dir":"Articles","previous_headings":"Overview","what":"gg_crossbar","title":"Demo: dark mode","text":"","code":"experiment |> gg_crossbar( x = trt, y = resp, ymin = lower, ymax = upper, col = group, width = 0.5, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_density","dir":"Articles","previous_headings":"Overview","what":"gg_density","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_density( x = flipper_length_mm, col = species, mode = dark_mode_t(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_density_2d","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d","title":"Demo: dark mode","text":"","code":"faithful |> gg_density_2d( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_density_2d_filled","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d_filled","title":"Demo: dark mode","text":"","code":"faithful |> gg_density_2d_filled( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_errorbar","dir":"Articles","previous_headings":"Overview","what":"gg_errorbar","title":"Demo: dark mode","text":"","code":"experiment |> gg_errorbar( x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", width = 0.1, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_freqpoly","dir":"Articles","previous_headings":"Overview","what":"gg_freqpoly","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_freqpoly( x = flipper_length_mm, col = sex, mode = dark_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_function","dir":"Articles","previous_headings":"Overview","what":"gg_function","title":"Demo: dark mode","text":"","code":"gg_function( fun = \\(x) dnorm(x, mean = 0, sd = 5), x_expand_limits = qnorm(p = c(0.005, 0.995), mean = 0, sd = 5), x_label = \"X\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_hex","dir":"Articles","previous_headings":"Overview","what":"gg_hex","title":"Demo: dark mode","text":"","code":"diamonds |> gg_hex( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_histogram","dir":"Articles","previous_headings":"Overview","what":"gg_histogram","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_histogram( x = flipper_length_mm, col = sex, facet = species, bins = 50, mode = dark_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_jitter","dir":"Articles","previous_headings":"Overview","what":"gg_jitter","title":"Demo: dark mode","text":"","code":"set.seed(123) penguins2 |> gg_jitter( position = position_jitter(), x = species, y = body_mass_g, col = flipper_length_mm, y_expand_limits = 0, col_steps = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_label","dir":"Articles","previous_headings":"Overview","what":"gg_label","title":"Demo: dark mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_label( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_line","dir":"Articles","previous_headings":"Overview","what":"gg_line","title":"Demo: dark mode","text":"","code":"economics |> gg_line( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_linerange","dir":"Articles","previous_headings":"Overview","what":"gg_linerange","title":"Demo: dark mode","text":"","code":"experiment |> gg_linerange( position = position_dodge(width = 0.2), x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_path","dir":"Articles","previous_headings":"Overview","what":"gg_path","title":"Demo: dark mode","text":"","code":"economics |> mutate(unemploy_rate = unemploy / pop) |> gg_path( x = unemploy_rate, y = psavert, x_label = \"Unemployment rate\", y_expand_limits = 0, y_label = \"Personal savings rate\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_point","dir":"Articles","previous_headings":"Overview","what":"gg_point","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_pointrange","dir":"Articles","previous_headings":"Overview","what":"gg_pointrange","title":"Demo: dark mode","text":"","code":"experiment |> gg_pointrange( position = position_dodge(width = 0.2), x = trt, y = resp, col = group, ymin = lower, ymax = upper, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_polygon","dir":"Articles","previous_headings":"Overview","what":"gg_polygon","title":"Demo: dark mode","text":"","code":"ids <- factor(c(\"1.1\", \"2.1\", \"1.2\", \"2.2\", \"1.3\", \"2.3\")) values <- data.frame( id = ids, value = c(3, 3.1, 3.1, 3.2, 3.15, 3.5) ) positions <- data.frame( id = rep(ids, each = 4), x = c(2, 1, 1.1, 2.2, 1, 0, 0.3, 1.1, 2.2, 1.1, 1.2, 2.5, 1.1, 0.3, 0.5, 1.2, 2.5, 1.2, 1.3, 2.7, 1.2, 0.5, 0.6, 1.3), y = c(-0.5, 0, 1, 0.5, 0, 0.5, 1.5, 1, 0.5, 1, 2.1, 1.7, 1, 1.5, 2.2, 2.1, 1.7, 2.1, 3.2, 2.8, 2.1, 2.2, 3.3, 3.2) ) datapoly <- merge(values, positions, by = c(\"id\")) datapoly |> gg_polygon( x = x, y = y, col = value, group = id, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_qq","dir":"Articles","previous_headings":"Overview","what":"gg_qq","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_qq( sample = body_mass_g, facet = species, coord = coord_cartesian(clip = \"on\"), ) + geom_qq_line()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_quantile","dir":"Articles","previous_headings":"Overview","what":"gg_quantile","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_quantile( x = flipper_length_mm, y = body_mass_g, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_raster","dir":"Articles","previous_headings":"Overview","what":"gg_raster","title":"Demo: dark mode","text":"","code":"faithfuld |> gg_raster( x = waiting, y = eruptions, col = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_rect","dir":"Articles","previous_headings":"Overview","what":"gg_rect","title":"Demo: dark mode","text":"","code":"data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(c(rep(1:4, each = 2), 5, NA)), w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)) |> mutate( xmin = x - w / 2, xmax = x + w / 2, ymin = y, ymax = y + 1 ) |> gg_rect( xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax, col = z, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_ribbon","dir":"Articles","previous_headings":"Overview","what":"gg_ribbon","title":"Demo: dark mode","text":"","code":"data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |> mutate(level_min = level - 1, level_max = level + 1) |> gg_ribbon( x = year, ymin = level_min, ymax = level_max, colour = NA, x_labels = \\(x) x, y_label = \"Level\", ) + geom_line(mapping = aes(x = year, y = level))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_rug","dir":"Articles","previous_headings":"Overview","what":"gg_rug","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_rug( x = flipper_length_mm, y = body_mass_g, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_segment","dir":"Articles","previous_headings":"Overview","what":"gg_segment","title":"Demo: dark mode","text":"","code":"data.frame(x1 = 2.62, x2 = 3.57, y1 = 21.0, y2 = 15.0) |> gg_segment( x = x1, xend = x2, y = y1, yend = y2, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_sf","dir":"Articles","previous_headings":"Overview","what":"gg_sf","title":"Demo: dark mode","text":"","code":"sf::st_read(system.file(\"shape/nc.shp\", package = \"sf\")) |> gg_sf( col = AREA, ) #> Reading layer `nc' from data source #> `/home/runner/work/_temp/Library/sf/shape/nc.shp' using driver `ESRI Shapefile' #> Simple feature collection with 100 features and 14 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965 #> Geodetic CRS: NAD27"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_smooth","dir":"Articles","previous_headings":"Overview","what":"gg_smooth","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, se = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_step","dir":"Articles","previous_headings":"Overview","what":"gg_step","title":"Demo: dark mode","text":"","code":"economics |> filter(date > lubridate::ymd(\"2010-01-01\")) |> gg_step( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_text","dir":"Articles","previous_headings":"Overview","what":"gg_text","title":"Demo: dark mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_text( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_tile","dir":"Articles","previous_headings":"Overview","what":"gg_tile","title":"Demo: dark mode","text":"","code":"penguins2 |> group_by(species, sex) |> summarise(flipper_length_mm = mean(flipper_length_mm, na.rm = TRUE)) |> labelled::copy_labels_from(penguins2) |> gg_tile( x = sex, y = species, col = flipper_length_mm, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_violin","dir":"Articles","previous_headings":"Overview","what":"gg_violin","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_violin( x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_blanket","dir":"Articles","previous_headings":"Overview","what":"gg_blanket","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_blanket( geom = \"violin\", stat = \"ydensity\", position = \"dodge\", x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"ggblanket","text":"ggblanket package ggplot2 wrapper functions. primary objective simplify ggplot2 visualisation. Secondary objectives relate : Design: produce well-designed visualisation Alignment: align ggplot2 tidyverse Scope: cover much ggplot2 . Computational speed traded-.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"how-it-works","dir":"Articles","previous_headings":"","what":"How it works","title":"ggblanket","text":"First setup set_blanket() gg_* function wraps geom merged col argument colour/fill variable facet argument facet variable facet2 argument facet 2nd variable aesthetics via mapping argument Prefixed arguments customise x/y/col/facet Smart *_label defaults axis legend titles ggplot2::geom_* arguments via ... Families *_mode_* themes legend variants Side-effects mode based mode_orientation One *_symmetric continuous scale Ability add multiple geom_* layers Arguments customise setup set_blanket() gg_blanket() function geom flexibility","code":"library(dplyr) library(stringr) library(ggplot2) library(scales) library(ggblanket) library(palmerpenguins) library(patchwork) penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\"))) |> tidyr::drop_na(sex)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"first-setup-with-set_blanket","dir":"Articles","previous_headings":"How it works","what":"1. First setup with set_blanket()","title":"ggblanket","text":"set_blanket() function run first. sets default style plots themes colours etc. can customised. run start every script quarto document.","code":"set_blanket()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"each-gg_-function-wraps-a-geom","dir":"Articles","previous_headings":"How it works","what":"2. Each gg_* function wraps a geom","title":"ggblanket","text":"gg_* function wraps ggplot2::ggplot() function associated ggplot2::geom_*() function. Almost every geom ggplot2 wrapped. Position related aesthetics can added directly arguments.","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-merged-col-argument-to-colourfill-by-a-variable","dir":"Articles","previous_headings":"How it works","what":"3. A merged col argument to colour/fill by a variable","title":"ggblanket","text":"colour fill aesthetics ggplot2 merged single concept represented col argument. combined aesthetic means colour outlines fill interiors coloured col_palette col variable. Use colour = NA fill = NA turn one .","code":"penguins2 |> gg_boxplot( x = flipper_length_mm, y = island, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-facet-argument-to-facet-by-a-variable","dir":"Articles","previous_headings":"How it works","what":"4. A facet argument to facet by a variable","title":"ggblanket","text":"Users provide unquoted facet variable facet . facet specified, facet_layout default \"wrap\" facet variable (facet2 = NULL).","code":"penguins2 |> gg_histogram( x = flipper_length_mm, facet = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-facet2-argument-to-facet-by-a-2nd-variable","dir":"Articles","previous_headings":"How it works","what":"5. A facet2 argument to facet by a 2nd variable","title":"ggblanket","text":"Users can also provide unquoted facet2 variable facet . facet2 specified, facet_layout default \"grid\" facet variable (horizontally) facet2 variable (vertically).","code":"penguins2 |> gg_histogram( x = flipper_length_mm, facet = species, facet2 = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"other-aesthetics-via-mapping-argument","dir":"Articles","previous_headings":"How it works","what":"6. Other aesthetics via mapping argument","title":"ggblanket","text":"aesthetics available via argument (e.g. alpha, size, shape, linetype linewidth). can accessed via mapping argument using aes() function. customise associated scales/guides, + applicable ggplot2 layer. situations, may reverse values relevant scale etc. Note can use set_blanket(geom_colour = lightness[1], ...) make legend symbols black needed.","code":"penguins2 |> gg_jitter( x = species, y = flipper_length_mm, col = island, mapping = aes(shape = island), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"prefixed-arguments-to-customise-xycolfacet","dir":"Articles","previous_headings":"How it works","what":"7. Prefixed arguments to customise x/y/col/facet","title":"ggblanket","text":"numerous arguments customise plots prefixed whether relate x, y, col facet. x, y col, relate associated arguments within ggplot2 scales guides. facet, relate associated arguments within ggplot2::facet_wrap ggplot2::facet_grid. Scales guides associated aesthetics can customised adding applicable ggplot2 layer.","code":"penguins2 |> gg_jitter( x = flipper_length_mm, y = body_mass_g, col = flipper_length_mm, x_breaks = scales::breaks_extended(n = 4, only.loose = TRUE), x_labels = \\(x) stringr::str_sub(x, 1, 1), y_expand_limits = 1000, y_labels = label_number(big.mark = \" \"), y_transform = \"log10\", col_label = \"Flipper\\nlength (mm)\", col_steps = TRUE, col_breaks = \\(x) quantile(x, seq(0, 1, 0.25)), col_palette = viridis::rocket(n = 9, direction = -1), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"smart-_label-defaults-for-axis-and-legend-titles","dir":"Articles","previous_headings":"How it works","what":"8. Smart *_label defaults for axis and legend titles","title":"ggblanket","text":"x_label, y_label col_label axis legend titles can manually specified applicable *_label argument (+ ggplot2::labs(...)). specified, first take label attribute associated applicable variable. none, convert variable name label name using label_to_case function, defaults sentence case (.e. snakecase::to_sentence_case).","code":"penguins2 |> gg_freqpoly( x = flipper_length_mm, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"other-ggplot2geom_-arguments-via----","dir":"Articles","previous_headings":"How it works","what":"9. Other ggplot2::geom_* arguments via ...","title":"ggblanket","text":"... argument provides access arguments ggplot2::geom_*() function. Common arguments add include colour, fill, alpha, linewidth, linetype, size width, enables fixing particular value. Use ggplot2::geom_* help see arguments available.","code":"penguins2 |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, col_palette = c(\"#003F5CFF\", \"#FFA600FF\"), colour = \"#BC5090FF\", linewidth = 1, linetype = \"dashed\", alpha = 1, se = TRUE, level = 0.999, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"families-of-_mode_-themes-with-legend-variants","dir":"Articles","previous_headings":"How it works","what":"10. Families of *_mode_* themes with legend variants","title":"ggblanket","text":"light_mode_* dark_mode_* theme families provided variants differ based legend placement suffix r (right), b (bottom), t (top). functions built use mode argument - flexibility adjust colours, linewidths etc.","code":"penguins2 |> gg_histogram( x = flipper_length_mm, col = species, title = \"Penguin flipper length by species\", subtitle = \"Palmer Archipelago, Antarctica\", caption = \"Source: Gorman, 2020\", mode = dark_mode_t() + theme(legend.title = element_blank()), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"side-effects-to-the-mode-based-on-the-mode_orientation","dir":"Articles","previous_headings":"How it works","what":"11. Side-effects to the mode based on the mode_orientation","title":"ggblanket","text":"gg_* function adds helpful side-effects mode. mode_orientation = \"x\", gg_* function remove y axis line/ticks x gridlines mode. mode_orientation = \"y\", opposite occur. gg_* guesses incorrect mode_orientation, user can change . reason, mode used designed anticipate side-effects. avoid side-effects, instead + theme gg_* output (use theme argument set_blanket).","code":"p1 <- penguins2 |> gg_jitter( x = sex, y = bill_depth_mm, ) p2 <- penguins2 |> gg_jitter( x = bill_depth_mm, y = sex, ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"one-_symmetric-continuous-scale","dir":"Articles","previous_headings":"How it works","what":"12. One *_symmetric continuous scale","title":"ggblanket","text":"One *_symmetric continuous scale can made : *_transform linear stat “sf” faceted, relevant scale fixed default, gg_* function make x_symmetric scale y discrete axis x continuous axis. Otherwise, make y_symmetric scale. y_symmetric axis makes: limits locked range y_breaks y_expand default c(0, 0). vice versa occurs x_symmetric axis. Use *_symmetric = FALSE revert normal limits expand defaults (.e. limits range data including *_expand_limits *_expand = c(0.05, 0.05)). Note continuous scales ensure data kept using scales::oob_keep - , default, left unclipped (.e. coord_cartesian(clip = \"\").","code":""},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"ability-to-add-multiple-geom_-layers","dir":"Articles","previous_headings":"How it works","what":"13. Ability to add multiple geom_* layers","title":"ggblanket","text":"Users can make plots multiple ggplot2::geom_* layers. gg_*() geom layer bottom geom layer plot, subsequent geom_*() layer placed top. Aesthetics added directly (e.g. x, y etc.) gg_*() function inherit later geom_*() layers, whereas added mapping argument . scales built within gg_*() function without knowledge later layers. gg_*() function builds scales regard stat, position, aesthetics (geom understands) etc. , situations, users need take care.","code":"penguins2 |> gg_violin( x = species, y = bill_depth_mm, outliers = FALSE, ) + geom_boxplot( width = 0.25, colour = lightness[1], fill = lightness[2], ) + geom_jitter( colour = navy, ) penguins2 |> group_by(species, sex) |> summarise( lower = quantile(bill_depth_mm, probs = 0.05), upper = quantile(bill_depth_mm, probs = 0.95), bill_depth_mm = mean(bill_depth_mm, na.rm = TRUE), ) |> labelled::copy_labels_from(penguins2) |> gg_blanket( y = species, x = bill_depth_mm, xmin = lower, xmax = upper, col = sex, position = position_dodge(width = 0.75), x_expand_limits = 0, ) + geom_col( width = 0.75, position = position_dodge(width = 0.75), alpha = 0.9, ) + geom_errorbar( width = 0.1, position = position_dodge(width = 0.75), colour = lightness[1], )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"arguments-to-customise-setup-with-set_blanket","dir":"Articles","previous_headings":"How it works","what":"14. Arguments to customise setup with set_blanket()","title":"ggblanket","text":"set_blanket function sets customisable defaults : mode (.e. theme added side-effects) colour (.e. colour/fill used colour aesthetic scale) annotation colour etc (.e. geoms commonly used annotation) discrete colour palette (NA colour) continuous colour palette (NA colour) theme (.e. theme added side-effects) ggplot2::update_geom_defaults() function can used fine-tune geom defaults. set_blanket() also works ggplot2 code.","code":"set_blanket( mode = dark_mode_r(), colour = \"#E7298AFF\", annotation_colour = darkness[1], col_palette_d = c(\"#1B9E77FF\", \"#D95F02FF\", \"#7570b3FF\", \"#E7298AFF\", \"#66A61EFF\", \"#E6AB02FF\", \"#A6761DFF\", \"#666666FF\"), #RColorBrewer Dark2 ) p1 <- penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, x_breaks = breaks_extended(n = 4, only.loose = TRUE), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.25), y = I(0.75), label = \"Here\") p2 <- penguins2 |> gg_histogram( x = flipper_length_mm, col = species, x_breaks = breaks_extended(n = 4, only.loose = TRUE), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.75), y = I(0.75), label = \"Here\") p1 + p2 set_blanket()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-gg_blanket-function-with-geom-flexibility","dir":"Articles","previous_headings":"How it works","what":"15. A gg_blanket() function with geom flexibility","title":"ggblanket","text":"package driven gg_blanket function, geom argument ggplot2::geom_blank defaults geom, stat position. functions wrap function fixed geom, default stat position arguments per applicable geom_* function. function can often used geoms associated gg_* function.","code":"geom_spoke() #> geom_spoke: na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity expand.grid(x = 1:10, y = 1:10) |> tibble() |> mutate(angle = runif(100, 0, 2*pi)) |> mutate(speed = runif(100, 0, sqrt(0.1 * x))) |> gg_blanket( geom = \"spoke\", x = x, y = y, col = speed, mapping = aes(angle = angle, radius = speed), ) + geom_point()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"further-information","dir":"Articles","previous_headings":"","what":"Further information","title":"ggblanket","text":"See ggblanket website information, including articles function reference.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"David Hodge. Author, maintainer, copyright holder.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Hodge D (2024). ggblanket: Simplify 'ggplot2' Visualisation. R package version 9.1.9.9000, https://github.com/davidhodge931/ggblanket, https://davidhodge931.github.io/ggblanket/.","code":"@Manual{, title = {ggblanket: Simplify 'ggplot2' Visualisation}, author = {David Hodge}, year = {2024}, note = {R package version 9.1.9.9000, https://github.com/davidhodge931/ggblanket}, url = {https://davidhodge931.github.io/ggblanket/}, }"},{"path":[]},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Simplify ggplot2 Visualisation","text":"ggblanket package ggplot2 wrapper functions. primary objective simplify ggplot2 visualisation. Secondary objectives relate : Design: produce well-designed visualisation Alignment: align ggplot2 tidyverse Scope: cover much ggplot2 . Computational speed traded-.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Simplify ggplot2 Visualisation","text":"","code":"install.packages(\"ggblanket\")"},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Simplify ggplot2 Visualisation","text":"","code":"library(ggblanket) library(palmerpenguins) set_blanket() penguins |> gg_histogram( x = flipper_length_mm, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"get-started","dir":"","previous_headings":"","what":"Get started","title":"Simplify ggplot2 Visualisation","text":"Click start learning ggblanket works.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"thank-you","dir":"","previous_headings":"","what":"Thank you","title":"Simplify ggplot2 Visualisation","text":"Thanks developers ggplot2, tidyverse R ecosystem. Dad, always missed (Peter Hodge, 1953-2023).","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":null,"dir":"Reference","previous_headings":"","what":"An auto-contrast colour aesthetic — aes_contrast","title":"An auto-contrast colour aesthetic — aes_contrast","text":"colour aesthetic annotation automatically contrasts fill. Can spliced ggplot2::aes rlang::!!!.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"An auto-contrast colour aesthetic — aes_contrast","text":"","code":"aes_contrast(..., dark = \"#121B24FF\", light = \"#FFFFFFFF\")"},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"An auto-contrast colour aesthetic — aes_contrast","text":"... Provided force user argument naming etc. dark dark colour. light light colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"An auto-contrast colour aesthetic — aes_contrast","text":"aesthetic","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"An auto-contrast colour aesthetic — aes_contrast","text":"","code":"library(ggplot2) library(dplyr) #> #> Attaching package: ‘dplyr’ #> The following objects are masked from ‘package:stats’: #> #> filter, lag #> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union library(stringr) library(palmerpenguins) set_blanket() penguins |> count(species, sex) |> gg_col( x = sex, y = n, col = species, position = position_dodge2(preserve = \"single\"), width = 0.75, x_labels = \\(x) str_to_sentence(x), ) + geom_text( mapping = aes(label = n, !!!aes_contrast()), position = position_dodge2(width = 0.75, preserve = \"single\"), vjust = 1.33, show.legend = FALSE, ) penguins |> count(species, sex) |> gg_col( x = sex, y = n, col = species, position = position_dodge2(preserve = \"single\"), width = 0.75, x_labels = \\(x) str_to_sentence(x), mode = dark_mode_r(), ) + geom_text( mapping = aes(label = n, !!!aes_contrast(dark = darkness[3], light = darkness[1])), position = position_dodge2(width = 0.75, preserve = \"single\"), vjust = 1.33, show.legend = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":null,"dir":"Reference","previous_headings":"","what":"A blue colour — blue","title":"A blue colour — blue","text":"blue colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A blue colour — blue","text":"","code":"blue"},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"A blue colour — blue","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"A blue colour — blue","text":"","code":"scales::show_col(blue)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":null,"dir":"Reference","previous_headings":"","what":"Dark mode theme family — dark_mode_r","title":"Dark mode theme family — dark_mode_r","text":"dark mode family functions: dark_mode_r() legend right dark_mode_t() legend top dark_mode_b() legend bottom","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dark mode theme family — dark_mode_r","text":"","code":"dark_mode_r( ..., base_size = 11, base_family = \"\", base_colour = \"#C8D7DFFF\", axis_line_colour = \"#C8D7DFFF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#00040AFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#050D1BFF\", plot_background_fill = \"#00040AFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) dark_mode_t( ..., base_size = 11, base_family = \"\", base_colour = \"#C8D7DFFF\", axis_line_colour = \"#C8D7DFFF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#00040AFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#050D1BFF\", plot_background_fill = \"#00040AFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) dark_mode_b( ..., base_size = 11, base_family = \"\", base_colour = \"#C8D7DFFF\", axis_line_colour = \"#C8D7DFFF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#00040AFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#050D1BFF\", plot_background_fill = \"#00040AFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dark mode theme family — dark_mode_r","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_colour base colour text theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Dark mode theme family — dark_mode_r","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Dark mode theme family — dark_mode_r","text":"","code":"library(palmerpenguins) library(ggplot2) set_blanket() penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = dark_mode_r() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = dark_mode_t() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = dark_mode_b() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":null,"dir":"Reference","previous_headings":"","what":"Flexible mode with bottom legend — flex_mode_b","title":"Flexible mode with bottom legend — flex_mode_b","text":"Flexible mode legend bottom.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flexible mode with bottom legend — flex_mode_b","text":"","code":"flex_mode_b( ..., base_size = 11, base_family = \"\", base_face = \"plain\", base_colour = \"#121B24FF\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_face = \"bold\", plot_title_colour = base_colour, plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_face = \"plain\", plot_subtitle_colour = base_colour, plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_face = \"plain\", plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flexible mode with bottom legend — flex_mode_b","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_face base face text theme element. Defaults \"plain\". base_colour base colour text theme element. plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_face face plot.title theme element. plot_title_colour colour plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Flexible mode with bottom legend — flex_mode_b","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":null,"dir":"Reference","previous_headings":"","what":"Mode theme base — flex_mode_base","title":"Mode theme base — flex_mode_base","text":"Theme base *_mode_* functions.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mode theme base — flex_mode_base","text":"","code":"flex_mode_base( base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", base_face = \"plain\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_colour = base_colour, plot_title_face = \"bold\", plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_colour = base_colour, plot_subtitle_face = \"plain\", plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_face = \"plain\", plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mode theme base — flex_mode_base","text":"base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_colour base colour text theme element. base_face base face text theme element. Defaults \"plain\". plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_colour colour plot.title theme element. plot_title_face face plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mode theme base — flex_mode_base","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":null,"dir":"Reference","previous_headings":"","what":"Flexible mode with right legend — flex_mode_r","title":"Flexible mode with right legend — flex_mode_r","text":"Flexible mode right legend.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flexible mode with right legend — flex_mode_r","text":"","code":"flex_mode_r( ..., base_size = 11, base_family = \"\", base_face = \"plain\", base_colour = \"#121B24FF\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_face = \"bold\", plot_title_colour = base_colour, plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_face = \"plain\", plot_subtitle_colour = base_colour, plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_face = \"plain\", plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flexible mode with right legend — flex_mode_r","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_face base face text theme element. Defaults \"plain\". base_colour base colour text theme element. plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_face face plot.title theme element. plot_title_colour colour plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Flexible mode with right legend — flex_mode_r","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":null,"dir":"Reference","previous_headings":"","what":"Flexible mode with top legend — flex_mode_t","title":"Flexible mode with top legend — flex_mode_t","text":"Flexible mode legend top.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flexible mode with top legend — flex_mode_t","text":"","code":"flex_mode_t( ..., base_size = 11, base_family = \"\", base_face = \"plain\", base_colour = \"#121B24FF\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_face = \"bold\", plot_title_colour = base_colour, plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_face = \"plain\", plot_subtitle_colour = base_colour, plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_face = \"plain\", plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flexible mode with top legend — flex_mode_t","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_face base face text theme element. Defaults \"plain\". base_colour base colour text theme element. plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_face face plot.title theme element. plot_title_colour colour plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Flexible mode with top legend — flex_mode_t","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":null,"dir":"Reference","previous_headings":"","what":"Area ggplot — gg_area","title":"Area ggplot — gg_area","text":"Create area ggplot wrapper around ggplot2::ggplot() + geom_area().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Area ggplot — gg_area","text":"","code":"gg_area( data = NULL, ..., stat = \"align\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Area ggplot — gg_area","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Area ggplot — gg_area","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Area ggplot — gg_area","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> gg_area( x = date, y = unemploy, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":null,"dir":"Reference","previous_headings":"","what":"Bar ggplot — gg_bar","title":"Bar ggplot — gg_bar","text":"Create bar ggplot wrapper around ggplot2::ggplot() + geom_bar().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bar ggplot — gg_bar","text":"","code":"gg_bar( data = NULL, ..., stat = \"count\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bar ggplot — gg_bar","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bar ggplot — gg_bar","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Bar ggplot — gg_bar","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_bar( y = species, col = sex, position = position_dodge(preserve = \"single\"), width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":null,"dir":"Reference","previous_headings":"","what":"Bin_2d ggplot — gg_bin_2d","title":"Bin_2d ggplot — gg_bin_2d","text":"Create bin2d ggplot wrapper around ggplot2::ggplot() + geom_bin_2d().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bin_2d ggplot — gg_bin_2d","text":"","code":"gg_bin_2d( data = NULL, ..., stat = \"bin2d\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bin_2d ggplot — gg_bin_2d","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bin_2d ggplot — gg_bin_2d","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Bin_2d ggplot — gg_bin_2d","text":"","code":"library(ggplot2) library(dplyr) set_blanket() diamonds |> gg_bin_2d( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":null,"dir":"Reference","previous_headings":"","what":"Blanket ggplot — gg_blanket","title":"Blanket ggplot — gg_blanket","text":"Create blanket ggplot wrapper around ggplot2::ggplot() + layer() geom_blank() defaults. function underlies gg_* functions. contains geom argument maximum flexibility.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Blanket ggplot — gg_blanket","text":"","code":"gg_blanket( data = NULL, ..., geom = \"blank\", stat = \"identity\", position = \"identity\", coord = NULL, mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Blanket ggplot — gg_blanket","text":"data data frame tibble. ... arguments passed within params list layer(). geom geometric object display data. snakecase character string ggproto Geom subclass object minus Geom prefix (e.g. \"point\"). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Blanket ggplot — gg_blanket","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Blanket ggplot — gg_blanket","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins %>% tidyr::drop_na(sex) %>% mutate(across(sex, \\(x) stringr::str_to_sentence(x))) %>% gg_blanket( geom = \"violin\", stat = \"ydensity\", position = \"dodge\", x = sex, y = body_mass_g, col = sex, facet = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":null,"dir":"Reference","previous_headings":"","what":"Boxplot ggplot — gg_boxplot","title":"Boxplot ggplot — gg_boxplot","text":"Create boxplot ggplot wrapper around ggplot2::ggplot() + geom_boxplot().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Boxplot ggplot — gg_boxplot","text":"","code":"gg_boxplot( data = NULL, ..., stat = \"boxplot\", position = \"dodge2\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Boxplot ggplot — gg_boxplot","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Boxplot ggplot — gg_boxplot","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Boxplot ggplot — gg_boxplot","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_boxplot( x = flipper_length_mm, y = sex, col = species, mode = light_mode_b(), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":null,"dir":"Reference","previous_headings":"","what":"Col ggplot — gg_col","title":"Col ggplot — gg_col","text":"Create col ggplot wrapper around ggplot2::ggplot() + geom_col().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Col ggplot — gg_col","text":"","code":"gg_col( data = NULL, ..., stat = \"identity\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Col ggplot — gg_col","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Col ggplot — gg_col","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Col ggplot — gg_col","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> group_by(sex, species) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> gg_col( x = flipper_length_mm, y = species, col = sex, position = position_dodge(preserve = \"single\"), width = 0.75, ) #> `summarise()` has grouped output by 'sex'. You can override using the `.groups` #> argument."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":null,"dir":"Reference","previous_headings":"","what":"Contour ggplot — gg_contour","title":"Contour ggplot — gg_contour","text":"Create contour ggplot wrapper around ggplot2::ggplot() + geom_contour().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Contour ggplot — gg_contour","text":"","code":"gg_contour( data = NULL, ..., stat = \"contour\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Contour ggplot — gg_contour","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Contour ggplot — gg_contour","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Contour ggplot — gg_contour","text":"","code":"library(ggplot2) library(dplyr) set_blanket() ggplot2::faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":null,"dir":"Reference","previous_headings":"","what":"Contour_filled ggplot — gg_contour_filled","title":"Contour_filled ggplot — gg_contour_filled","text":"Create contour_filled ggplot wrapper around ggplot2::ggplot() + geom_contour_filled().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Contour_filled ggplot — gg_contour_filled","text":"","code":"gg_contour_filled( data = NULL, ..., stat = \"contour_filled\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Contour_filled ggplot — gg_contour_filled","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Contour_filled ggplot — gg_contour_filled","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Contour_filled ggplot — gg_contour_filled","text":"","code":"library(ggplot2) library(dplyr) set_blanket() faithfuld |> gg_contour_filled( x = waiting, y = eruptions, z = density, bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":null,"dir":"Reference","previous_headings":"","what":"Crossbar ggplot — gg_crossbar","title":"Crossbar ggplot — gg_crossbar","text":"Create crossbar ggplot wrapper around ggplot2::ggplot() + geom_crossbar().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Crossbar ggplot — gg_crossbar","text":"","code":"gg_crossbar( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Crossbar ggplot — gg_crossbar","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Crossbar ggplot — gg_crossbar","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Crossbar ggplot — gg_crossbar","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_crossbar( x = trt, y = resp, ymin = lower, ymax = upper, col = group, width = 0.5, x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":null,"dir":"Reference","previous_headings":"","what":"Density ggplot — gg_density","title":"Density ggplot — gg_density","text":"Create density ggplot wrapper around ggplot2::ggplot() + geom_density().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density ggplot — gg_density","text":"","code":"gg_density( data = NULL, ..., stat = \"density\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density ggplot — gg_density","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density ggplot — gg_density","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density ggplot — gg_density","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> tidyr::drop_na(sex) |> gg_density( x = flipper_length_mm, col = species, mode = light_mode_t(), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":null,"dir":"Reference","previous_headings":"","what":"Density_2d ggplot — gg_density_2d","title":"Density_2d ggplot — gg_density_2d","text":"Create density_2d ggplot wrapper around ggplot2::ggplot() + geom_density_2d().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density_2d ggplot — gg_density_2d","text":"","code":"gg_density_2d( data = NULL, ..., stat = \"density_2d\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density_2d ggplot — gg_density_2d","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density_2d ggplot — gg_density_2d","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density_2d ggplot — gg_density_2d","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() faithful |> gg_density_2d( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":null,"dir":"Reference","previous_headings":"","what":"Density_2d_filled ggplot — gg_density_2d_filled","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"Create density_2d_filled ggplot wrapper around ggplot2::ggplot() + geom_density_2d_filled().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"","code":"gg_density_2d_filled( data = NULL, ..., stat = \"density_2d_filled\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() faithful |> gg_density_2d_filled( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":null,"dir":"Reference","previous_headings":"","what":"Errorbar ggplot — gg_errorbar","title":"Errorbar ggplot — gg_errorbar","text":"Create errorbar ggplot wrapper around ggplot2::ggplot() + geom_errorbar().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Errorbar ggplot — gg_errorbar","text":"","code":"gg_errorbar( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Errorbar ggplot — gg_errorbar","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Errorbar ggplot — gg_errorbar","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Errorbar ggplot — gg_errorbar","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_errorbar( x = trt, ymin = lower, ymax = upper, col = group, width = 0.1, x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":null,"dir":"Reference","previous_headings":"","what":"Freqpoly ggplot — gg_freqpoly","title":"Freqpoly ggplot — gg_freqpoly","text":"Create freqpoly ggplot wrapper around ggplot2::ggplot() + geom_freqpoly().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Freqpoly ggplot — gg_freqpoly","text":"","code":"gg_freqpoly( data = NULL, ..., stat = \"bin\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Freqpoly ggplot — gg_freqpoly","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Freqpoly ggplot — gg_freqpoly","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Freqpoly ggplot — gg_freqpoly","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_freqpoly( x = flipper_length_mm, col = sex, col_label = \"\", mode = light_mode_t(), ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_bin()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":null,"dir":"Reference","previous_headings":"","what":"Function ggplot — gg_function","title":"Function ggplot — gg_function","text":"Create function ggplot wrapper around ggplot2::ggplot() + geom_function().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function ggplot — gg_function","text":"","code":"gg_function( data = NULL, ..., stat = \"function\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function ggplot — gg_function","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function ggplot — gg_function","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Function ggplot — gg_function","text":"","code":"library(ggplot2) library(dplyr) set_blanket() gg_function( fun = \\(x) dnorm(x, mean = 0, sd = 5), x_expand_limits = qnorm(p = c(0.005, 0.995), mean = 0, sd = 5), y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":null,"dir":"Reference","previous_headings":"","what":"Hex ggplot — gg_hex","title":"Hex ggplot — gg_hex","text":"Create hex ggplot wrapper around ggplot2::ggplot() + geom_hex().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Hex ggplot — gg_hex","text":"","code":"gg_hex( data = NULL, ..., stat = \"binhex\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Hex ggplot — gg_hex","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Hex ggplot — gg_hex","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Hex ggplot — gg_hex","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() diamonds |> gg_hex( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":null,"dir":"Reference","previous_headings":"","what":"Histogram ggplot — gg_histogram","title":"Histogram ggplot — gg_histogram","text":"Create histogram ggplot wrapper around ggplot2::ggplot() + geom_histogram().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Histogram ggplot — gg_histogram","text":"","code":"gg_histogram( data = NULL, ..., stat = \"bin\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Histogram ggplot — gg_histogram","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Histogram ggplot — gg_histogram","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Histogram ggplot — gg_histogram","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_histogram( x = flipper_length_mm, col = sex, facet = species, bins = 50, mode = light_mode_b(), ) #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_bin()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":null,"dir":"Reference","previous_headings":"","what":"Jitter ggplot — gg_jitter","title":"Jitter ggplot — gg_jitter","text":"Create jitter ggplot wrapper around ggplot2::ggplot() + geom_jitter().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Jitter ggplot — gg_jitter","text":"","code":"gg_jitter( data = NULL, ..., stat = \"identity\", position = \"jitter\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Jitter ggplot — gg_jitter","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Jitter ggplot — gg_jitter","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Jitter ggplot — gg_jitter","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() set.seed(123) penguins |> gg_jitter( x = species, y = body_mass_g, col = flipper_length_mm, position = position_jitter(height = 0), y_expand_limits = 0, col_steps = TRUE, ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":null,"dir":"Reference","previous_headings":"","what":"Label ggplot — gg_label","title":"Label ggplot — gg_label","text":"Create label ggplot wrapper around ggplot2::ggplot() + geom_label().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Label ggplot — gg_label","text":"","code":"gg_label( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Label ggplot — gg_label","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Label ggplot — gg_label","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Label ggplot — gg_label","text":"","code":"library(ggplot2) library(dplyr) set_blanket() bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg) ) |> tibble::rownames_to_column(\"model\") |> gg_label( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":null,"dir":"Reference","previous_headings":"","what":"Line ggplot — gg_line","title":"Line ggplot — gg_line","text":"Create line ggplot wrapper around ggplot2::ggplot() + geom_line().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Line ggplot — gg_line","text":"","code":"gg_line( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Line ggplot — gg_line","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Line ggplot — gg_line","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Line ggplot — gg_line","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> gg_line( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":null,"dir":"Reference","previous_headings":"","what":"Linerange ggplot — gg_linerange","title":"Linerange ggplot — gg_linerange","text":"Create linerange ggplot wrapper around ggplot2::ggplot() + geom_linerange().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Linerange ggplot — gg_linerange","text":"","code":"gg_linerange( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Linerange ggplot — gg_linerange","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Linerange ggplot — gg_linerange","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Linerange ggplot — gg_linerange","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_linerange( x = trt, ymin = lower, ymax = upper, col = group, position = position_dodge(width = 0.2), x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":null,"dir":"Reference","previous_headings":"","what":"Path ggplot — gg_path","title":"Path ggplot — gg_path","text":"Create path ggplot wrapper around ggplot2::ggplot() + geom_path().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Path ggplot — gg_path","text":"","code":"gg_path( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Path ggplot — gg_path","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Path ggplot — gg_path","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Path ggplot — gg_path","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> mutate(unemploy_rate = unemploy / pop) |> gg_path( x = unemploy_rate, y = psavert, x_label = \"Unemployment rate\", y_expand_limits = 0, y_label = \"Personal savings rate\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":null,"dir":"Reference","previous_headings":"","what":"Point ggplot — gg_point","title":"Point ggplot — gg_point","text":"Create point ggplot wrapper around ggplot2::ggplot() + geom_point().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Point ggplot — gg_point","text":"","code":"gg_point( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Point ggplot — gg_point","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Point ggplot — gg_point","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Point ggplot — gg_point","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_point( x = flipper_length_mm, y = body_mass_g, col = sex, ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":null,"dir":"Reference","previous_headings":"","what":"Pointrange ggplot — gg_pointrange","title":"Pointrange ggplot — gg_pointrange","text":"Create pointrange ggplot wrapper around ggplot2::ggplot() + geom_pointrange().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pointrange ggplot — gg_pointrange","text":"","code":"gg_pointrange( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pointrange ggplot — gg_pointrange","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pointrange ggplot — gg_pointrange","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Pointrange ggplot — gg_pointrange","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_pointrange( x = trt, y = resp, col = group, ymin = lower, ymax = upper, position = position_dodge(width = 0.2), x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":null,"dir":"Reference","previous_headings":"","what":"Polygon ggplot — gg_polygon","title":"Polygon ggplot — gg_polygon","text":"Create polygon ggplot wrapper around ggplot2::ggplot() + geom_polygon().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Polygon ggplot — gg_polygon","text":"","code":"gg_polygon( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Polygon ggplot — gg_polygon","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Polygon ggplot — gg_polygon","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Polygon ggplot — gg_polygon","text":"","code":"library(ggplot2) library(dplyr) set_blanket() ids <- factor(c(\"1.1\", \"2.1\", \"1.2\", \"2.2\", \"1.3\", \"2.3\")) values <- data.frame( id = ids, value = c(3, 3.1, 3.1, 3.2, 3.15, 3.5) ) positions <- data.frame( id = rep(ids, each = 4), x = c( 2, 1, 1.1, 2.2, 1, 0, 0.3, 1.1, 2.2, 1.1, 1.2, 2.5, 1.1, 0.3, 0.5, 1.2, 2.5, 1.2, 1.3, 2.7, 1.2, 0.5, 0.6, 1.3 ), y = c( -0.5, 0, 1, 0.5, 0, 0.5, 1.5, 1, 0.5, 1, 2.1, 1.7, 1, 1.5, 2.2, 2.1, 1.7, 2.1, 3.2, 2.8, 2.1, 2.2, 3.3, 3.2 ) ) datapoly <- merge(values, positions, by = c(\"id\")) datapoly |> gg_polygon( x = x, y = y, col = value, group = id, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":null,"dir":"Reference","previous_headings":"","what":"Qq ggplot — gg_qq","title":"Qq ggplot — gg_qq","text":"Create qq ggplot wrapper around ggplot2::ggplot() + geom_qq().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Qq ggplot — gg_qq","text":"","code":"gg_qq( data = NULL, ..., stat = \"qq\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Qq ggplot — gg_qq","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Qq ggplot — gg_qq","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Qq ggplot — gg_qq","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> gg_qq( sample = body_mass_g, facet = species, coord = coord_cartesian(clip = \"on\"), ) + geom_qq_line( colour = blue, ) #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_qq()`). #> Warning: Removed 2 rows containing non-finite outside the scale range #> (`stat_qq_line()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":null,"dir":"Reference","previous_headings":"","what":"Quantile ggplot — gg_quantile","title":"Quantile ggplot — gg_quantile","text":"Create quantile ggplot wrapper around ggplot2::ggplot() + geom_quantile().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Quantile ggplot — gg_quantile","text":"","code":"gg_quantile( data = NULL, ..., stat = \"quantile\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Quantile ggplot — gg_quantile","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Quantile ggplot — gg_quantile","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Quantile ggplot — gg_quantile","text":"","code":"if (requireNamespace(\"quantreg\", quietly = TRUE)) { library(ggplot2) library(palmerpenguins) set_blanket() penguins |> gg_quantile( x = flipper_length_mm, y = body_mass_g, ) } #> Warning: Removed 2 rows containing non-finite outside the scale range #> (`stat_quantile()`). #> Smoothing formula not specified. Using: y ~ x"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":null,"dir":"Reference","previous_headings":"","what":"Raster ggplot — gg_raster","title":"Raster ggplot — gg_raster","text":"Create raster ggplot wrapper around ggplot2::ggplot() + geom_raster().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Raster ggplot — gg_raster","text":"","code":"gg_raster( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Raster ggplot — gg_raster","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Raster ggplot — gg_raster","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Raster ggplot — gg_raster","text":"","code":"library(ggplot2) library(dplyr) set_blanket() faithfuld |> gg_raster( x = waiting, y = eruptions, col = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":null,"dir":"Reference","previous_headings":"","what":"Rect ggplot — gg_rect","title":"Rect ggplot — gg_rect","text":"Create rect ggplot wrapper around ggplot2::ggplot() + geom_rect().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rect ggplot — gg_rect","text":"","code":"gg_rect( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rect ggplot — gg_rect","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Rect ggplot — gg_rect","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rect ggplot — gg_rect","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(c(rep(1:4, each = 2), 5, NA)), w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2) ) |> mutate( xmin = x - w / 2, xmax = x + w / 2, ymin = y, ymax = y + 1 ) |> gg_rect( xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax, col = z, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":null,"dir":"Reference","previous_headings":"","what":"Ribbon ggplot — gg_ribbon","title":"Ribbon ggplot — gg_ribbon","text":"Create ribbon ggplot wrapper around ggplot2::ggplot() + geom_ribbon()","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Ribbon ggplot — gg_ribbon","text":"","code":"gg_ribbon( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Ribbon ggplot — gg_ribbon","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Ribbon ggplot — gg_ribbon","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Ribbon ggplot — gg_ribbon","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |> mutate(level_min = level - 1, level_max = level + 1) |> gg_ribbon( x = year, ymin = level_min, ymax = level_max, colour = NA, x_labels = \\(x) x, y_label = \"Level\", ) + geom_line(mapping = aes(y = level))"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":null,"dir":"Reference","previous_headings":"","what":"Rug ggplot — gg_rug","title":"Rug ggplot — gg_rug","text":"Create rug ggplot wrapper around ggplot2::ggplot() + geom_rug().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rug ggplot — gg_rug","text":"","code":"gg_rug( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rug ggplot — gg_rug","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Rug ggplot — gg_rug","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rug ggplot — gg_rug","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_rug( x = flipper_length_mm, y = body_mass_g, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":null,"dir":"Reference","previous_headings":"","what":"Segment ggplot — gg_segment","title":"Segment ggplot — gg_segment","text":"Create segment ggplot wrapper around ggplot2::ggplot() + geom_segment().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Segment ggplot — gg_segment","text":"","code":"gg_segment( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Segment ggplot — gg_segment","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Segment ggplot — gg_segment","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Segment ggplot — gg_segment","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() data.frame(x1 = 2.62, x2 = 3.57, y1 = 21.0, y2 = 15.0) |> gg_segment( x = x1, xend = x2, y = y1, yend = y2, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":null,"dir":"Reference","previous_headings":"","what":"Sf ggplot — gg_sf","title":"Sf ggplot — gg_sf","text":"Create blank ggplot wrapper around ggplot2::ggplot() + geom_sf().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sf ggplot — gg_sf","text":"","code":"gg_sf( data = NULL, ..., stat = \"sf\", position = \"identity\", coord = ggplot2::coord_sf(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sf ggplot — gg_sf","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Sf ggplot — gg_sf","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Sf ggplot — gg_sf","text":"","code":"library(ggplot2) library(dplyr) set_blanket() if (requireNamespace(\"sf\", quietly = TRUE)) { sf::st_read(system.file(\"shape/nc.shp\", package = \"sf\")) |> gg_sf( col = AREA, ) } #> Reading layer `nc' from data source #> `/home/runner/work/_temp/Library/sf/shape/nc.shp' using driver `ESRI Shapefile' #> Simple feature collection with 100 features and 14 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965 #> Geodetic CRS: NAD27"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":null,"dir":"Reference","previous_headings":"","what":"Smooth ggplot — gg_smooth","title":"Smooth ggplot — gg_smooth","text":"Create smooth ggplot wrapper around ggplot2::ggplot() + geom_smooth().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Smooth ggplot — gg_smooth","text":"","code":"gg_smooth( data = NULL, ..., stat = \"smooth\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Smooth ggplot — gg_smooth","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Smooth ggplot — gg_smooth","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Smooth ggplot — gg_smooth","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> tidyr::drop_na(sex) |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, se = TRUE, ) #> `geom_smooth()` using method = 'loess' and formula = 'y ~ x'"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":null,"dir":"Reference","previous_headings":"","what":"Step ggplot — gg_step","title":"Step ggplot — gg_step","text":"Create step plot wrapper around ggplot2::ggplot() + geom_step().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Step ggplot — gg_step","text":"","code":"gg_step( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Step ggplot — gg_step","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Step ggplot — gg_step","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Step ggplot — gg_step","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> filter(date > lubridate::ymd(\"2010-01-01\")) |> gg_step( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":null,"dir":"Reference","previous_headings":"","what":"Text ggplot — gg_text","title":"Text ggplot — gg_text","text":"Create text plot wrapper around ggplot2::ggplot() + geom_text().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Text ggplot — gg_text","text":"","code":"gg_text( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Text ggplot — gg_text","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Text ggplot — gg_text","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Text ggplot — gg_text","text":"","code":"library(ggplot2) library(dplyr) set_blanket() bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg) ) |> tibble::rownames_to_column(\"model\") |> gg_text( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":null,"dir":"Reference","previous_headings":"","what":"Tile ggplot — gg_tile","title":"Tile ggplot — gg_tile","text":"Create tile plot wrapper around ggplot2::ggplot() + geom_tile().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Tile ggplot — gg_tile","text":"","code":"gg_tile( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Tile ggplot — gg_tile","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Tile ggplot — gg_tile","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tile ggplot — gg_tile","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> group_by(species, sex) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> gg_tile( x = sex, y = species, col = flipper_length_mm, ) #> `summarise()` has grouped output by 'species'. You can override using the #> `.groups` argument."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":null,"dir":"Reference","previous_headings":"","what":"Violin ggplot — gg_violin","title":"Violin ggplot — gg_violin","text":"Create violin plot wrapper around ggplot2::ggplot() + geom_violin().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Violin ggplot — gg_violin","text":"","code":"gg_violin( data = NULL, ..., stat = \"ydensity\", position = \"dodge\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Violin ggplot — gg_violin","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Violin ggplot — gg_violin","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Violin ggplot — gg_violin","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_violin( x = sex, y = body_mass_g, col = sex, facet = species, mode = light_mode_b(), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/ggblanket-package.html","id":null,"dir":"Reference","previous_headings":"","what":"ggblanket: Simplify 'ggplot2' Visualisation — ggblanket-package","title":"ggblanket: Simplify 'ggplot2' Visualisation — ggblanket-package","text":"Simplify 'ggplot2' visualisation 'ggblanket' wrapper functions.","code":""},{"path":[]},{"path":"https://davidhodge931.github.io/ggblanket/reference/ggblanket-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"ggblanket: Simplify 'ggplot2' Visualisation — ggblanket-package","text":"Maintainer: David Hodge davidhodge931@gmail.com (ORCID) [copyright holder]","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":null,"dir":"Reference","previous_headings":"","what":"A grey colour — grey","title":"A grey colour — grey","text":"grey colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A grey colour — grey","text":"","code":"grey"},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"A grey colour — grey","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"A grey colour — grey","text":"","code":"scales::show_col(grey)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":null,"dir":"Reference","previous_headings":"","what":"The jumble palette — jumble","title":"The jumble palette — jumble","text":"discrete palette relatively colour-blind safe.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The jumble palette — jumble","text":"","code":"jumble teal orange navy red pink purple"},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The jumble palette — jumble","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The jumble palette — jumble","text":"","code":"colorspace::swatchplot(c(jumble, grey), cvd = TRUE)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":null,"dir":"Reference","previous_headings":"","what":"Light mode theme family — light_mode_r","title":"Light mode theme family — light_mode_r","text":"dark mode family functions: light_mode_r() legend right light_mode_t() legend top light_mode_b() legend bottom","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Light mode theme family — light_mode_r","text":"","code":"light_mode_r( ..., base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) light_mode_t( ..., base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) light_mode_b( ..., base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Light mode theme family — light_mode_r","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_colour base colour text theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Light mode theme family — light_mode_r","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Light mode theme family — light_mode_r","text":"","code":"library(palmerpenguins) library(ggplot2) set_blanket() penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = light_mode_r() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = light_mode_t() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = light_mode_b() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":null,"dir":"Reference","previous_headings":"","what":"Mode colour and linewidth defaults — lightness","title":"Mode colour and linewidth defaults — lightness","text":"lightness darkness vectors 3 colours used *_mode_* themes text, axis.line (axis.ticks), panel.grid, panel.background plot.background etc. linewidthness vector 2 integers used *_mode_* themes linewidth axis.line (axis.ticks legend.ticks) panel.grid theme elements.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mode colour and linewidth defaults — lightness","text":"","code":"lightness darkness linewidthness"},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mode colour and linewidth defaults — lightness","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Mode colour and linewidth defaults — lightness","text":"","code":"scales::show_col(c(lightness, darkness), ncol = 3)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":null,"dir":"Reference","previous_headings":"","what":"Orientate a mode to ","title":"Orientate a mode to ","text":"Theme components add mode used used outside gg_* context.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Orientate a mode to ","text":"","code":"mode_orientation_to_x()"},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Orientate a mode to ","text":"ggplot2 theme components.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Orientate a mode to ","text":"","code":"library(ggplot2) library(palmerpenguins) penguins |> ggplot() + geom_point(aes(x = flipper_length_mm, y = body_mass_g)) + light_mode_r() + mode_orientation_to_x() #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":null,"dir":"Reference","previous_headings":"","what":"Orientate a mode to ","title":"Orientate a mode to ","text":"Theme components add mode used used outside gg_* context.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Orientate a mode to ","text":"","code":"mode_orientation_to_y()"},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Orientate a mode to ","text":"ggplot2 theme components.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Orientate a mode to ","text":"","code":"library(ggplot2) library(palmerpenguins) penguins |> ggplot() + geom_bar(aes(y = island)) + light_mode_r() + mode_orientation_to_y()"},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":null,"dir":"Reference","previous_headings":"","what":"Pipe operator — %>%","title":"Pipe operator — %>%","text":"See magrittr::%>% details.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pipe operator — %>%","text":"","code":"lhs %>% rhs"},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pipe operator — %>%","text":"lhs value magrittr placeholder. rhs function call using magrittr semantics.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pipe operator — %>%","text":"result calling rhs(lhs).","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":null,"dir":"Reference","previous_headings":"","what":"Symmetric x continuous scale — scale_x_symmetric","title":"Symmetric x continuous scale — scale_x_symmetric","text":"Symmetric x continuous scale","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Symmetric x continuous scale — scale_x_symmetric","text":"","code":"scale_x_symmetric( ..., data = NULL, x = NULL, symmetric = TRUE, breaks = NULL, breaks_n = 6, expand = NULL, expand_limits = NULL, labels = NULL, position = \"bottom\", sec_axis = ggplot2::waiver(), transform = \"identity\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Symmetric x continuous scale — scale_x_symmetric","text":"... Provided force user argument naming etc. data data frame tibble. x unquoted variable. symmetric TRUE FALSE whether symmetric scale. breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. breaks_n breaks = NULL, desired number breaks. expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). expand_limits values limits encompass (e.g. 0). labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. position position axis (.e. \"left\", \"right\", \"bottom\" \"top\"). sec_axis secondary axis created ggplot2::sec_axis() ggplot2::dup_axis(). transform transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\").","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Symmetric x continuous scale — scale_x_symmetric","text":"ggplot2 continuous x scale.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":null,"dir":"Reference","previous_headings":"","what":"Symmetric y continuous scale — scale_y_symmetric","title":"Symmetric y continuous scale — scale_y_symmetric","text":"Symmetric y continuous scale","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Symmetric y continuous scale — scale_y_symmetric","text":"","code":"scale_y_symmetric( ..., data = NULL, y = NULL, symmetric = TRUE, breaks = NULL, breaks_n = 6, expand = NULL, expand_limits = NULL, labels = NULL, position = \"left\", sec_axis = ggplot2::waiver(), transform = \"identity\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Symmetric y continuous scale — scale_y_symmetric","text":"... Provided force user argument naming etc. data data frame tibble. y unquoted variable. symmetric TRUE FALSE whether symmetric scale. breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. breaks_n breaks = NULL, desired number breaks. expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). expand_limits values limits encompass (e.g. 0). labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. position position axis (.e. \"left\", \"right\", \"bottom\" \"top\"). sec_axis secondary axis created ggplot2::sec_axis() ggplot2::dup_axis(). transform transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\").","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Symmetric y continuous scale — scale_y_symmetric","text":"ggplot2 continuous y scale.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a style — set_blanket","title":"Set a style — set_blanket","text":"Set style setting mode, series geom annotate aesthetic defaults, col_palette discrete continuous scales.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a style — set_blanket","text":"","code":"set_blanket( ..., mode = light_mode_r(), colour = \"#357BA2FF\", annotation_colour = \"#121B24FF\", annotation_linewidth = 0.33, annotation_family = \"\", annotation_size = 3.88, col_palette_d = jumble, col_palette_na_d = \"#CDC5BFFF\", col_palette_c = viridisLite::mako(n = 9, direction = -1), col_palette_na_c = \"#988F88FF\", col_palette_o = scales::pal_viridis(option = \"G\", direction = -1), col_palette_na_o = \"#988F88FF\", theme = light_mode_r() + mode_orientation_to_x() )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a style — set_blanket","text":"... Provided force user argument naming etc. mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates gg_* side-effects removing relevant axis line/ticks gridlines per mode_orientation. colour hex colour (fill) geoms. Fill inherits colour. Defaults blue (.e. #357BA2FF). annotation_colour hex colour (fill) *_hline/*_vline/*_abline *_curve. Defaults \"#121b24\" (.e. lightness[1]). annotation_linewidth linewidth *_hline/*_vline/*_abline *_curve. Defaults 0.33. annotation_family family *_text *_label. Defaults \"\". annotation_size size *_text *_label. Defaults 3.88. col_palette_d discrete scale, character vector hex codes (names) col_palette. col_palette_na_d discrete scale, hex code name col_palette_na. col_palette_c continuous scale, character vector hex codes (names) col_palette. col_palette_na_c continuous scale, hex code name col_palette_na. col_palette_o ordinal scale, scales::pal_*() function col_palette. col_palette_na_o ordinal scale, hex code name col_palette_na. theme ggplot2 theme gg_* function add without side-effects. Note, mode takes precedence, unless mode = NULL.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Set a style — set_blanket","text":"globally set style.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Set a style — set_blanket","text":"","code":"library(ggplot2) library(ggblanket) library(palmerpenguins) set_blanket( mode = dark_mode_r(), colour = orange, annotation_colour = darkness[1], ) penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, x_breaks = scales::breaks_pretty(3), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.25), y = I(0.75), label = \"Here\") #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_histogram( x = flipper_length_mm, x_breaks = scales::breaks_pretty(3), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.75), y = I(0.75), label = \"Here\") #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_bin()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_c.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a continuous colour palette — weave_col_palette_c","title":"Set a continuous colour palette — weave_col_palette_c","text":"Set continuous colour palette","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_c.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a continuous colour palette — weave_col_palette_c","text":"","code":"weave_col_palette_c( col_palette_c = viridisLite::mako(n = 9, direction = -1), col_palette_c_na = \"#988F88FF\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_c.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a continuous colour palette — weave_col_palette_c","text":"col_palette_c continuous scale, character vector hex codes (col_palette_c_names) col_palette_c_na continuous scale, hex code (col_palette_c_name) col_palette_col_palette_c_na.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_d.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a discrete colour palette — weave_col_palette_d","title":"Set a discrete colour palette — weave_col_palette_d","text":"Set discrete colour palette","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_d.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a discrete colour palette — weave_col_palette_d","text":"","code":"weave_col_palette_d(col_palette_d = jumble, col_palette_d_na = \"#CDC5BFFF\")"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_d.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a discrete colour palette — weave_col_palette_d","text":"col_palette_d discrete scale, character vector hex codes (col_palette_d_names) col_palette_d. col_palette_d_na discrete scale, hex code (col_palette_d_name) col_palette_d_col_palette_d_na.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_o.html","id":null,"dir":"Reference","previous_headings":"","what":"Set an ordinal colour palette — weave_col_palette_o","title":"Set an ordinal colour palette — weave_col_palette_o","text":"Set ordinal colour palette","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_o.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set an ordinal colour palette — weave_col_palette_o","text":"","code":"weave_col_palette_o( col_palette_o = scales::pal_viridis(option = \"G\", direction = -1), col_palette_o_na = \"#988F88FF\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_o.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set an ordinal colour palette — weave_col_palette_o","text":"col_palette_o ordicol_palette_o_nal scale, scales::pal_*() function col_palette_o. col_palette_o_na ordicol_palette_o_nal scale, hex code (col_palette_o_name) col_palette_o_col_palette_o_na.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_geom_defaults.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a series of geom defaults — weave_geom_defaults","title":"Set a series of geom defaults — weave_geom_defaults","text":"Update geom defaults.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_geom_defaults.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a series of geom defaults — weave_geom_defaults","text":"","code":"weave_geom_defaults( colour = \"#357BA2FF\", annotation_colour = \"#121B24FF\", annotation_linewidth = 0.33, annotation_family = \"\", annotation_size = 3.88 )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_geom_defaults.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a series of geom defaults — weave_geom_defaults","text":"colour hex colour (fill) geoms *_hline/*_vline/*_abline *_curve. Fill inherits colour. Defaults blue (.e. #357BA2FF). annotation_colour hex annotation_colour (fill) *_hline/*_vline/*_abline *_curve. Defaults \"#121b24\" (.e. lightness[1]). annotation_linewidth annotation_linewidth *_hline/*_vline/*_abline *_curve. Defaults 0.33. annotation_family annotation_family *_text *_label. Defaults \"\" annotation_size annotation_size *_text *_label. Defaults 3.88.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_mode.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a mode — weave_mode","title":"Set a mode — weave_mode","text":"Set mode mode argument gg_* functions.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_mode.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a mode — weave_mode","text":"","code":"weave_mode(mode = light_mode_r())"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_mode.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a mode — weave_mode","text":"mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates gg_* side-effects removing relevant axis line/ticks gridlines per mode_orientation.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_theme.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a theme — weave_theme","title":"Set a theme — weave_theme","text":"Set theme +-ed unmodified gg_* functions. Note, mode takes precedence unless NULL.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_theme.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a theme — weave_theme","text":"","code":"weave_theme(theme = light_mode_r() + mode_orientation_to_x())"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_theme.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a theme — weave_theme","text":"theme ggplot2 theme gg_* function add without side-effects. Note, mode takes precedence, unless mode = NULL.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-9119000","dir":"Changelog","previous_headings":"","what":"ggblanket 9.1.1.9000","title":"ggblanket 9.1.1.9000","text":"Breaking: removed *_limits *_oob arguments. Breaking: removed *_mode_n grey_mode_* functions. Breaking: removed greyness helper. Breaking: removed *_orientation arguments *_mode_* functions. Breaking: set_blanket, renamed annotate_* arguments annotation_*. Added *_symmetric arguments. Added mode_orientation argument. Added *_breaks_n *_sec_axis arguments. Added weave_* setup functions. Added mode_orientation_to_x mode_orientation_to_y functions. set_blanket, changed theme argument default theme_grey().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-911","dir":"Changelog","previous_headings":"","what":"ggblanket 9.1.1","title":"ggblanket 9.1.1","text":"CRAN release: 2024-06-14 Forced user argument naming set_blanket(), *_mode_*() aes_contrast(). Fixed bug colouring discrete values set col_palette_d. Fixed bug colouring col_palette_d set names data. Removed mode_family argument aes_contrast(). Made *_mode_t() *_mode_b() legend.byrow = TRUE. Made *_mode_*() functions intuitive remove/adjust elements. Changed gg_sf default keeping major gridlines. Updated hex colour strings caps. Fixed code making base plot extra time unnecessarily. Fixed bug *_breaks *_limits working.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-910","dir":"Changelog","previous_headings":"","what":"ggblanket 9.1.0","title":"ggblanket 9.1.0","text":"CRAN release: 2024-05-25 Moved mapping argument within layer. Determine x y classes based axis built plot. Guess orientation based discrete y axis. Added *_orientation arguments orientation guess incorrect. Supported col_palette argument accept vector ordinal variables. Made pattern guide/label equal colour/fill align automatically.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-900","dir":"Changelog","previous_headings":"","what":"ggblanket 9.0.0","title":"ggblanket 9.0.0","text":"CRAN release: 2024-05-15 Supported label-based workflow. Breaking: renamed *_title *_label. Breaking: renamed titles_to_case label_to_case. Breaking: removed weave_* functions. Breaking: removed geom_linewidth geom_size weave_geom_aes set_blanket. Fixed bug grey_mode_*/dark_mode_* missing legend functionality. Improved scales using scales::breaks_extended(). dark_mode_*, fixed incorrect axis_line_colour default. *_mode_*, updated caption colour default. Made guides alpha/shape/size/linewidth/linetype aesthetics equal colour/fill align automatically. Breaking: removed replace_seq. Added col_drop facet_drop arguments. Fixed bug relating gg_bin_2d scales. Updated default NA colour used continuous colour scales #988f88ff\" (.e. colorspace::darken(grey, 0.25)). Supported use scales::pal_*() functions within col_palette argument.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-800","dir":"Changelog","previous_headings":"","what":"ggblanket 8.0.0","title":"ggblanket 8.0.0","text":"CRAN release: 2024-04-29 Breaking: renamed col_pal col_palette. Breaking: removed ability use col_palette col = NULL. Breaking: set_blanket weave_*, renamed arguments. Updated set_blanket() weave_col_palette_*() set default col_palette. Updated set_blanket() weave_*() set ggplot2 well ggblanket. Added jumble discrete colour palette. Added red, pink purple. Changed col_palette_na default \"seashell3\". Added orientation argument *_mode_* functions use ggplot2. Breaking: aes_contrast, added arguments optimise modes, renamed arguments. Breaking: removed facet_labels_position facet_labels_switch. Breaking: adjusted *ness helper palettes. Added arguments *_mode_* control colours/linewidths etc. Minor *_mode_* updates. Made compatible extension geoms x y variables layer_data.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-700","dir":"Changelog","previous_headings":"","what":"ggblanket 7.0.0","title":"ggblanket 7.0.0","text":"CRAN release: 2024-03-28 Added set_blanket function, now required set style. Added weave_geom_defaults weave_annotate_defaults helper functions. Supported use colour fill. Breaking: removed alpha arguments. Breaking: renamed mode_set weave_mode. Breaking: aes_contrast, renamed col_pal contrast_pal. Breaking: removed greys. Breaking: removed plum. Improved *_expand defaults histograms bar graphs etc. Fixed bug support use named col_pal. Fixed bug positional scale reversed *_expand_limits.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-600","dir":"Changelog","previous_headings":"","what":"ggblanket 6.0.0","title":"ggblanket 6.0.0","text":"CRAN release: 2024-02-23 Rewrote code completely. Exported gg_blanket function, allows ggproto geom (character string) added. Added aes_contrast colour aesthetic automatically contrasts fill aesthetic based work (@teunbrand, #649) ** Added alpha aesthetic support new alpha, alpha_pal alpha_* arguments. Added stat support ggproto object (character string). Added position support ggproto object (character string). Added transform support transform class object (character string). Added facet_axes facet_axis_labels arguments. Added facet_labels_position argument. Added gg_quantile, gg_rug, gg_function functions. Added col_steps argument support colouring steps. Added *_position argument support changing axis positions. Added mode_set function. Breaking: made theme_set set theme globally side-effects. Breaking: Added light_mode_*, dark_mode_* grey_mode_* family functions. Updated gg_* functions pretty removal axis line ticks. Changed default theme place legend top right. Changed NULL effect pretty axis *_limits = c(NA, NA) y_expand NULL. Improved default gridlines, changed default colour. Fixed bug col logical class. Added new helper hex codes blue, teal, orange, navy, plum, greys Updated default discrete palette. Breaking: shift ... front require users name arguments. Breaking: renamed theme argument mode. Breaking: renamed pal col_pal. Breaking: renamed pal_na col_pal_na. Breaking: renamed alpha alpha_pal. Breaking: alpha now refers aesthetic . Breaking: renamed *_include *_expand_limits. Breaking: renamed *_trans *_transform. Breaking: removed col_legend_place argument. Breaking: removed *_sec_axis argument. Breaking: removed light_mode dark_mode functions. Breaking: removed col_scale argument. Breaking: removed gg_blank function. Breaking: removed *_gridlines arguments. Breaking: renamed facet_switch argument facet_labels_switch. Breaking: removed guardian function. Breaking: renamed str_keep_seq replace_seq. Breaking: renamed titles titles_to_case. Breaking: removed magic *_title = \"\" removed title. Improved log transform defaults. Changed legend.byrow FALSE. gg_* function’s help now inherits parameters gg_blanket (@olivroy, #625). improved documentation help (@olivroy, #643).","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-520","dir":"Changelog","previous_headings":"","what":"ggblanket 5.2.0","title":"ggblanket 5.2.0","text":"CRAN release: 2023-11-10 Updated colours: #357BA2 mako[9](5) col aesthetic, guardian discrete 4 less colours, scales:hue_pal 5 colours, viridisLite::mako reversed continuous, \"grey\" NA. Breaking: removed pal_* functions. Removed unnecessary messages. Fixed bug col_breaks working numeric col. Fixed bug str_keep_seq working date, datetime time class. Fixed bug time class variables work. Fixed bug gg_contour_filled gg_density_filled default number colours. Improved default positional breaks. Ensured positional breaks take expand account. Updated gg_qq, includes geom_qq_line layer, nicer x_title, y_title coord defaults. Added positional scale arguments gg_sf (.e. *_limits, *_expand, *_breaks, *_labels). Improved margins col_legend_place top.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-510","dir":"Changelog","previous_headings":"","what":"ggblanket 5.1.0","title":"ggblanket 5.1.0","text":"CRAN release: 2023-09-19 Fixed bug col variable reversing non-flipped. Added pal_light_mode pal_dark_mode.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-500","dir":"Changelog","previous_headings":"","what":"ggblanket 5.0.0","title":"ggblanket 5.0.0","text":"CRAN release: 2023-09-12 Added mapping argument allow extra aesthetics included, shape (use delayed evaluation aesthetics col, colour, fill alpha). Added stat argument back flexibility. Added linetype_title, shape_title, size_title arguments. Added str_keep_seq helper function support keeping labels sequence. Breaking: made horizontal y characters factors plot values low bottom high top. Breaking: removed lower, middle, upper, xlower, xmiddle, xupper arguments gg_blank. Updated *_breaks defaults. Made plot order logical variables TRUE first. Added pal_discrete2 6 colour blind safe colours light background theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-400","dir":"Changelog","previous_headings":"","what":"ggblanket 4.0.0","title":"ggblanket 4.0.0","text":"CRAN release: 2023-08-08 Breaking: removed stat argument gg_* functions except gg_blank. Breaking: renamed pal_hue pal_discrete made colours relatively red/green colour blind safe. Breaking: renamed gg_bin2d gg_bin_2d. Breaking: changed *_oob default back scales::oob_keep. Improved scales work better transformations, limits, breaks etc. Added gg_contour, gg_contour_filled, gg_density2d, gg_density2d_filled functions. Made default keep unused factors across scales facets. Made default continuous label function drop trailing zeros. Made default legend place simpler: bottom, unless continuous. Otherwise right. Added text aesthetic plotly::ggplotly.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-300","dir":"Changelog","previous_headings":"","what":"ggblanket 3.0.0","title":"ggblanket 3.0.0","text":"CRAN release: 2023-06-30 New theme functions: light_mode dark_mode. Breaking: removed gg_theme. Breaking: renamed *_grid arguments *_gridlines. Breaking: removed void argument. Breaking: removed gg_function. Breaking: made col_rescale require function (e.g. scales::rescale()). Added facet_switch argument. Made col_legend_place = \"none\" remove col legend. Made gg_bin2d gg_hex scales calculate way functions. raster, removed col aesthetic legend work. Improved gg_sf default alpha. Supported gg_sf work non-standard named geometry. Thanks Nik Mitchell Rosie Percival feedback.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-200","dir":"Changelog","previous_headings":"","what":"ggblanket 2.0.0","title":"ggblanket 2.0.0","text":"CRAN release: 2023-05-26 Made ggblanket work better adding layers. Made pal longer inherit layers col aesthetic. Made x y scales work better, including NA limits. Added 2 colours pal_hue. Breaking: changed default *oob argument scales::oob_censor. Breaking: changed default coord argument include clip = \"\" argument. Breaking: removed add_tooltip function. Breaking: changed pal functions pal_blue, pal_grey, pal_hue.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-180","dir":"Changelog","previous_headings":"","what":"ggblanket 1.8.0","title":"ggblanket 1.8.0","text":"CRAN release: 2023-04-24 Updated default colour palette. Updated default NA colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-170","dir":"Changelog","previous_headings":"","what":"ggblanket 1.7.0","title":"ggblanket 1.7.0","text":"CRAN release: 2023-03-06 Updated gg_theme default axis-line gridline thickness. Supported named pal vectors. Removed clip argument. Added coord argument. Added *_oob arguments. Improved *_limits works. Removed default gridlines gg_sf. Fixed bug default x_expand. Fixed bug gg_histogram scales. Critical fix support dplyr 1.1.0. Supported colouring date, datetime time variables. Made datetime breaks default waiver. Breaking: removed void argument gg_theme. Corrected bug gg_raster legend showing. Updated gg_raster *_limits *_expand defaults. Internal function make infinite values NA made compatible dplyr 1.1.0 (#269, @DavisVaughan)","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-160","dir":"Changelog","previous_headings":"","what":"ggblanket 1.6.0","title":"ggblanket 1.6.0","text":"CRAN release: 2022-11-18 Breaking: renamed add_tooltip_text add_tooltip changed column name “tooltip”. Breaking: coord argument removed. Added clip argument defaulted “”. Made x y limits also act within coord. Made gg_blank powerful flexible. Improved horizontal flipped plot scales. Fixed bugs relating free facet_scales scale limits. Improved vignette.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-150","dir":"Changelog","previous_headings":"","what":"ggblanket 1.5.0","title":"ggblanket 1.5.0","text":"CRAN release: 2022-10-14 Breaking: redesigned gg_theme. Added automatic gridline removal. Added gg_bin2d function. Added gg_hex function. Added col_trans col_rescale arguments. Made col_legend_place default “r” numeric col variable. Made *_title = \"\" equivalent + labs(* = NULL). Supported x y datetime variables. Supported x y time variables. Redesigned internal code x, y col scales.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-140","dir":"Changelog","previous_headings":"","what":"ggblanket 1.4.0","title":"ggblanket 1.4.0","text":"CRAN release: 2022-09-02 Breaking: Removed col_intervals argument. Breaking: Removed *_oob argument. Breaking: gg_theme, changed *_style arguments *_face. Breaking: gg_theme, changed font arguments family. Added gg_polygon function. Added col_continuous argument support colouring “steps”. Added col_legend_rev argument reverse legends. Added facet_layout argument faceting flexibility. Added facet_space argument support proportional facet panels. Removed width default. Improved default legend look continuous gradient. Improved scales y NULL plot horizontal. Fixed bug position = \"fill\". Updated messages. Added vignette.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-130","dir":"Changelog","previous_headings":"","what":"ggblanket 1.3.0","title":"ggblanket 1.3.0","text":"CRAN release: 2022-08-05 Breaking: removed facet_intervals argument. Breaking: made extensive changes gg_theme function. Added facet2 aesthetic support effortless grid faceting. Changed default background theme colours. Fixed bug *_limits *_include working correctly. Added *_sec_axis arguments. Changed *_oob default scales::oob_keep. Removed reversal logical variable order. Defaulted col_legend_place \"b\".","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-120","dir":"Changelog","previous_headings":"","what":"ggblanket 1.2.0","title":"ggblanket 1.2.0","text":"CRAN release: 2022-07-01 Breaking: Removed *_breaks_n *_breaks_width. Added support *_breaks receive function. Added *_include argument. Added *_trans argument. Modified default x_breaks behaviour x y numeric date. Enhanced gg_blank work one x y. Provided support ggplotly. Added new add_tooltip_text function. Added new titles argument apply function across titles. Support gg_ functions working stats. Removed size argument, anticipation ggplot2 3.4.0. Updated gg_theme title vjust margins.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-110","dir":"Changelog","previous_headings":"","what":"ggblanket 1.1.0","title":"ggblanket 1.1.0","text":"CRAN release: 2022-05-27 Remove default sentence case transformation categorical variable labels. Updated scales work consistent way position = \"fill\".","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-100","dir":"Changelog","previous_headings":"","what":"ggblanket 1.0.0","title":"ggblanket 1.0.0","text":"CRAN release: 2022-05-10 Initial release.","code":""}]
+[{"path":"https://davidhodge931.github.io/ggblanket/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 David Hodge Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Go further","text":"article demonstrate random assortment content, including advanced. Change stat layer Change position layer Use + *_mode_* axis-lines gridlines wanted Reorder /reverse categorical variables Drop unused categorical variable values Transform scales \"log\" etc Correct default orientation Avoid ‘symmetric’ scale Avoid mode side-effects Change *_position positional axes Add contrasting dark light text polygons Use opacity emphasise/de-emphasise Zoom scales Use delayed evaluation Rescale diverging col scale Add legend within panel","code":"library(dplyr) library(tidyr) library(forcats) library(stringr) library(ggplot2) library(scales) library(ggblanket) library(patchwork) library(palmerpenguins) set_blanket() penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\")))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"change-the-stat-of-the-layer","dir":"Articles","previous_headings":"Overview","what":"1. Change the stat of the layer","title":"Go further","text":"default stat gg_* function can changed.","code":"penguins2 |> gg_pointrange( stat = \"summary\", x = species, y = flipper_length_mm, ) library(ggforce) ggplot2::economics |> slice_head(n = 35) |> gg_path( stat = \"bspline\", n = 100, x = date, y = unemploy, y_label = \"Unemployment\", linewidth = 1, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"change-the-position-of-the-layer","dir":"Articles","previous_headings":"Overview","what":"2. Change the position of the layer","title":"Go further","text":"default position gg_* function can changed.","code":"penguins2 |> gg_point( position = ggbeeswarm::position_quasirandom(), x = sex, y = flipper_length_mm, col = sex, ) + theme(legend.position = \"none\")"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"use-_mode_-where-axis-lines-and-gridlines-are-not-as-wanted","dir":"Articles","previous_headings":"Overview","what":"3. Use + *_mode_* where axis-lines and gridlines are not as wanted","title":"Go further","text":"Sometimes plot might guess removal gridlines axis-line/ticks incorrectly. situations, can + *_mode_* plot, remove whatever want.","code":"msleep |> gg_point( x = bodywt, y = brainwt, col = vore, col_labels = str_to_sentence, x_transform = \"log10\", y_transform = \"log10\", ) + light_mode_r() + guides( x = guide_axis_logticks(), y = guide_axis_logticks(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"reorder-andor-reverse-categorical-variables","dir":"Articles","previous_headings":"Overview","what":"4. Reorder and/or reverse categorical variables","title":"Go further","text":"ggblanket requires unquoted variables x, y, col, facet, facet2 alpha. can often manipulate data prior plotting achieve want (e.g. using tidyr::drop_na, forcats::fct_rev /forcats::fct_reorder).","code":"p1 <- diamonds |> count(color) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nDefault order\" ) p2 <- diamonds |> count(color) |> mutate(color = fct_rev(fct_reorder(color, n))) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nRe-orderered\" ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"drop-unused-categorical-variable-values","dir":"Articles","previous_headings":"Overview","what":"5. Drop unused categorical variable values","title":"Go further","text":"ggblanket keeps unused factor levels plot. users wish drop unused levels likewise data prior plotting using forcats::fct_drop.","code":"p1 <- diamonds |> count(color) |> filter(color %in% c(\"E\", \"G\", \"I\")) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nUnused levels kept\", ) p2 <- diamonds |> count(color) |> filter(color %in% c(\"E\", \"G\", \"I\")) |> mutate(color = forcats::fct_drop(color)) |> gg_col( x = n, y = color, width = 0.75, x_labels = \\(x) x / 1000, x_label = \"Count (thousands)\", subtitle = \"\\nUnused levels dropped\", ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"transform-scales-to-log-etc","dir":"Articles","previous_headings":"Overview","what":"6. Transform scales to \"log\" etc","title":"Go further","text":"Transform objects (e.g. transform_log() character strings can used transform scales - including combining .","code":"p1 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), subtitle = \"\\nDefault\", ) p2 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), y_transform = \"reverse\", subtitle = \"\\nReverse\", ) p3 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_transform = \"log10\", subtitle = \"\\nLog10\", ) p4 <- pressure |> gg_point( x = temperature, y = pressure, x_breaks = breaks_extended(n = 4), y_transform = c(\"log10\", \"reverse\"), subtitle = \"\\nLog10 & Reverse\", ) (p1 + p2) / (p3 + p4)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"correct-the-default-orientation","dir":"Articles","previous_headings":"Overview","what":"7. Correct the default orientation","title":"Go further","text":"gg_* function guesses *_orientation plot determine make continuous axes side-effects provided mode. guesses incorrectly, use either x_orientation y_orientation argument.","code":"p1 <- penguins2 |> gg_point( x = bill_depth_mm, y = bill_length_mm, subtitle = \"\\nDefault orientation\", ) p2 <- penguins2 |> gg_point( x = bill_depth_mm, y = bill_length_mm, y_orientation = TRUE, subtitle = \"\\nCorrected orientation\", ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"avoid-the-symmetric-scale","dir":"Articles","previous_headings":"Overview","what":"8. Avoid the ‘symmetric’ scale","title":"Go further","text":"Symmetric scales can turned using *_symmetric arguments.","code":"p1 <- penguins2 |> gg_pointrange( x = sex, y = bill_length_mm, stat = \"summary\", position = position_dodge(), x_labels = \\(x) str_sub(x, 1, 1), subtitle = \"\\ny_symmetric = NULL\", ) + labs(y = NULL) p2 <- penguins2 |> gg_pointrange( x = sex, y = bill_length_mm, stat = \"summary\", position = position_dodge(), x_labels = \\(x) str_sub(x, 1, 1), y_symmetric = FALSE, subtitle = \"\\ny_symmetric = FALSE,\", ) + labs(y = NULL) p3 <- penguins2 |> gg_col( x = sex, y = bill_length_mm, stat = \"summary\", position = position_dodge(), width = 0.5, x_labels = \\(x) str_sub(x, 1, 1), y_symmetric = FALSE, subtitle = \"\\ny_symmetric = FALSE,\", ) + labs(y = NULL) p1 + p2 + p3"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"avoid-the-mode-side-effects","dir":"Articles","previous_headings":"Overview","what":"9. Avoid the mode side-effects","title":"Go further","text":"*_orientation = TRUE, remove relevant axis line/ticks gridlines mode theme. can avoid +-ing theme plot, instead adding mode argument.","code":"p1 <- penguins2 |> gg_jitter( x = sex, y = bill_depth_mm, subtitle = \"\\nmode = light_more_r()\", ) p2 <- penguins2 |> gg_jitter( x = sex, y = bill_depth_mm, subtitle = \"\\n+ light_more_r()\", ) + light_mode_r() p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"change-the-_position-of-positional-axes","dir":"Articles","previous_headings":"Overview","what":"10. Change the *_position of positional axes","title":"Go further","text":"Positional axes can changed using *_position. Note x_position = \"top\", caption must added modified make work nicely *_mode_* theme.","code":"economics |> gg_line( x = date, y = unemploy, col = date, y_position = \"right\", x_position = \"top\", caption = \"\", title = \"Unemployment\", subtitle = \"1967\\u20132015\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"add-contrasting-dark-or-light-text-on-polygons","dir":"Articles","previous_headings":"Overview","what":"11. Add contrasting dark or light text on polygons","title":"Go further","text":"Text polygons can coloured dark light colour determined based underlying polygon colour using !!!aes_contrast(). method developed Teun van den Brand (@teunbrand).","code":"penguins2 |> count(species, sex) |> gg_col( x = sex, y = n, col = species, position = position_dodge2(preserve = \"single\"), width = 0.75, ) + geom_text( mapping = aes(label = n, !!!aes_contrast()), position = position_dodge2(width = 0.75, preserve = \"single\"), vjust = 1.33, show.legend = FALSE, ) penguins2 |> count(species, sex) |> gg_col( position = position_dodge2(preserve = \"single\"), x = n, y = sex, col = species, width = 0.75, mode = dark_mode_r(), ) + geom_text( mapping = aes(label = n, !!!aes_contrast(\"dark\")), position = position_dodge2(width = 0.75, preserve = \"single\"), hjust = 1.25, show.legend = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"use-opacity-to-emphasisede-emphasise","dir":"Articles","previous_headings":"Overview","what":"12. Use opacity to emphasise/de-emphasise","title":"Go further","text":"Use opacity mapping = aes(alpha = ...), col = ..., col_palette emphasise/de-emphasise parts visualisation.","code":"p1 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), colour = alpha(orange, 0.33), fill = orange, alpha = 0.1, subtitle = \"\\nOpacity fill 0.1 & outline 0.33\" ) p2 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, col = sex, x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), col_palette = c(orange, \"#78909C\"), subtitle = \"\\ncol variable\" ) p3 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, col = sex, mapping = aes(alpha = sex), x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), col_palette = c(orange, \"#78909C\"), subtitle = \"\\ncol and alpha variable\", ) + guides(colour = \"none\", fill = \"none\", alpha = \"none\") + scale_alpha_manual(values = c(0.5, 0.1)) p4 <- penguins2 |> drop_na(sex) |> gg_density( x = flipper_length_mm, col = sex, mapping = aes(alpha = sex), x_breaks = breaks_extended(n = 4), y_breaks = breaks_pretty(n = 4), col_palette = c(orange, alpha(\"#78909C\", 0.25)), subtitle = \"\\ncol and alpha variable & outline opacity\", ) + scale_alpha_manual(values = c(0.5, 0.1)) (p1 + p2) / (p3 + p4)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"zoom-in-or-out-on-scales","dir":"Articles","previous_headings":"Overview","what":"13. Zoom in or out on scales","title":"Go further","text":"*_limits arguments ggblanket. Instead, users use combination filtering data, adding *_expand_limits coord = coord_cartesian(xlim = ..., ylim = ...) arguments etc.","code":"#To Zoom out, se *_expand_limits: penguins |> gg_smooth( x = body_mass_g, y = bill_depth_mm, se = TRUE, x_expand_limits = c(0), y_expand_limits = c(10, 25), ) #To zoom-in when the stat equals \"identity\", use dplyr::filter penguins |> filter(bill_depth_mm < 15) |> gg_point( x = bill_depth_mm, y = body_mass_g, ) #To zoom-in when the stat does _not_ equal \"identity\", use coord_cartesian #Then either recreate the breaks, or turn off the symmetric axis penguins |> gg_smooth( x = body_mass_g, y = bill_depth_mm, se = TRUE, coord = coord_cartesian(ylim = c(14.8, 15)), y_breaks = scales::breaks_width(0.05), # y_symmetric = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"use-delayed-evaluation","dir":"Articles","previous_headings":"Overview","what":"14. Use delayed evaluation","title":"Go further","text":"mapping argument can used delayed evaluation ggplot2::after_stat function.","code":"penguins2 |> gg_histogram( x = flipper_length_mm, mapping = aes(y = after_stat(density)), facet = species, ) faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, mapping = aes(colour = after_stat(level)), bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"rescale-a-diverging-col-scale","dir":"Articles","previous_headings":"Overview","what":"15. Rescale a diverging col scale","title":"Go further","text":"Use col_rescale rescale diverging scale around central point.","code":"rescale_vctr <- sort(c(range(mpg$cty), 15)) mpg |> gg_point( x = displ, y = hwy, col = cty, col_palette = c(navy, teal, \"white\", orange, red), col_rescale = scales::rescale(rescale_vctr), col_breaks = scales::breaks_width(5), mode = dark_mode_r(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/1_go_further.html","id":"add-a-legend-within-the-panel","dir":"Articles","previous_headings":"Overview","what":"16. Add a legend within the panel","title":"Go further","text":"","code":"set_blanket() penguins2 |> gg_histogram( x = flipper_length_mm, col = species, mode = light_mode_r(), ) + theme(legend.position = \"inside\") + theme(legend.position.inside = c(1, 0.975)) + theme(legend.justification = c(1, 1))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Extensions","text":"article demonstrate fantastic ggplot2 extension packages. Note, alternative use ggplot2 code directly instead. may easier depending familiarity ggblanket/ggplot2 relevant extension package. set_blanket() function used get lot ggblanket style also works ggplot2.","code":"library(dplyr) library(stringr) library(ggplot2) library(scales) library(ggblanket) library(patchwork) library(palmerpenguins) set_blanket() penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\")))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"patchwork","dir":"Articles","previous_headings":"Overview","what":"patchwork","title":"Extensions","text":"patchwork package enables plots patched together. convenient hack add panel centred title can add facet_wrap layer character title string facets argument. Otherwise need modify margins","code":"p1 <- mtcars |> gg_point( x = mpg, y = disp, ) + facet_wrap(~\"Plot 1\") p2 <- mtcars |> gg_boxplot( x = gear, y = disp, group = gear, width = 0.5, ) + facet_wrap(~\"Plot 2\") p3 <- mtcars |> gg_smooth( x = disp, y = qsec, ) + facet_wrap(~\"Plot 3\") (p1 + p2) / p3 + plot_annotation( title = \"A collection of plots patched together\", subtitle = \"Works so nice!\", theme = light_mode_r() + theme( plot.title = element_text(margin = margin(t = -11)), plot.subtitle = element_text(margin = margin(t = 5.5)), ) )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"marquee","dir":"Articles","previous_headings":"Overview","what":"marquee","title":"Extensions","text":"marquee package supports using markdown text.","code":"penguins2 |> gg_point( x = bill_depth_mm, y = bill_length_mm, col = species, title = \"**{.#0095a8ff Adelie}**, **{.#ffa600ff Chinstrap}**, *and* **{.#003f5cff Gentoo}** penguin species\", ) + theme(legend.position = \"none\") + theme(plot.title = marquee::element_marquee())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"showtext","dir":"Articles","previous_headings":"Overview","what":"showtext","title":"Extensions","text":"showtext package enables use different fonts plots. *_mode_* theme functions provide base_family argument.","code":"head(sysfonts::font_families_google()) #> [1] \"ABeeZee\" \"Abel\" \"Abhaya Libre\" \"Abril Fatface\" #> [5] \"Aclonica\" \"Acme\" sysfonts::font_add_google(\"Covered By Your Grace\", \"grace\") sysfonts::font_add_google('Roboto Slab', 'roboto_slab') sysfonts::font_add_google('Syne Mono', 'syne') showtext::showtext_auto(enable = TRUE) penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = sex, facet = species, title = \"penguins2 body mass by flipper length\", subtitle = \"Palmer Archipelago, Antarctica\", caption = \"Source: Gorman, 2020\", mode = light_mode_r(base_family = \"grace\"), ) + theme( plot.title = element_text(family = \"roboto_slab\"), plot.subtitle = element_text(family = \"syne\") ) showtext::showtext_auto(enable = FALSE)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"gghighlight","dir":"Articles","previous_headings":"Overview","what":"gghighlight","title":"Extensions","text":"gghighlight package enables geoms parts thereof highlighted. gg_* function builds scale data thinks within panel. Therefore situations, must taken account ensure scale builds correctly.","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, ) + gghighlight::gghighlight(body_mass_g >= 5000) penguins2 |> gg_histogram( x = flipper_length_mm, col = species, x_breaks = breaks_extended(n = 4), ) + #build the scale for all data facet_wrap(~species) + #then add facet layer gghighlight::gghighlight()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggforce","dir":"Articles","previous_headings":"Overview","what":"ggforce","title":"Extensions","text":"ggforce package includes numerous extra geoms, stats etc.","code":"library(ggforce) geom_bspline() #> geom_path: arrow = NULL, lineend = butt, na.rm = FALSE #> stat_bspline: na.rm = FALSE, n = 100, type = clamped #> position_identity economics |> slice_head(n = 35) |> gg_path( stat = \"bspline\", n = 100, type = \"clamped\", x = date, y = unemploy, linewidth = 1, y_label = \"Unemployment\", ) geom_mark_hull() #> geom_mark_hull: na.rm = FALSE, expand = 5, radius = 2.5, concavity = 2, label.margin = c(2, 2, 2, 2), label.width = NULL, label.minwidth = 50, label.fontsize = 12, label.family = , label.lineheight = 1, label.fontface = c(\"bold\", \"plain\"), label.hjust = 0, label.fill = white, label.colour = black, label.buffer = 10, con.colour = black, con.size = 0.5, con.type = elbow, con.linetype = 1, con.border = one, con.cap = 3, con.arrow = NULL #> stat_identity: na.rm = FALSE #> position_identity penguins2 |> gg_blanket( geom = \"mark_hull\", x = flipper_length_mm, y = body_mass_g, col = species, coord = coord_cartesian(), ) + geom_point()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggrepel","dir":"Articles","previous_headings":"Overview","what":"ggrepel","title":"Extensions","text":"ggrepel package can used neatly avoid overlapping labels.","code":"library(ggrepel) geom_text_repel() #> geom_text_repel: parse = FALSE, na.rm = FALSE, box.padding = 0.25, point.padding = 1e-06, min.segment.length = 0.5, arrow = NULL, force = 1, force_pull = 1, max.time = 0.5, max.iter = 10000, max.overlaps = 10, nudge_x = 0, nudge_y = 0, xlim = c(NA, NA), ylim = c(NA, NA), direction = both, seed = NA, verbose = FALSE #> stat_identity: na.rm = FALSE #> position_identity mtcars |> tibble::rownames_to_column(\"car\") |> filter(wt > 2.75, wt < 3.45) |> gg_point( x = wt, y = mpg, label = car, ) + geom_text_repel()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggbeeswarm","dir":"Articles","previous_headings":"Overview","what":"ggbeeswarm","title":"Extensions","text":"ggbeeswarm package enables beeswarm plots.","code":"library(ggbeeswarm) geom_beeswarm() #> geom_point: na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_beeswarm geom_quasirandom() #> geom_point: na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_quasirandom p1 <- penguins2 |> gg_point( position = position_beeswarm(), x = sex, y = flipper_length_mm, col = sex, x_labels = \\(x) str_to_upper(str_sub(x, 1, 1)), subtitle = \"\\nBeeswarm\", ) + theme(legend.position = \"none\") p2 <- penguins2 |> gg_point( position = ggbeeswarm::position_quasirandom(), x = sex, y = flipper_length_mm, col = sex, x_labels = \\(x) str_to_upper(str_sub(x, 1, 1)), subtitle = \"\\nQuasirandom\", ) + theme(legend.position = \"none\") p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggridges","dir":"Articles","previous_headings":"Overview","what":"ggridges","title":"Extensions","text":"ggridges package enables ridgeline plots.","code":"library(ggridges) geom_density_ridges() #> geom_density_ridges: na.rm = FALSE, panel_scaling = TRUE #> stat_density_ridges: na.rm = FALSE #> position_points_sina ggridges::Catalan_elections |> rename_with(snakecase::to_snake_case) |> mutate(year = factor(year)) |> gg_blanket( geom = \"density_ridges\", stat = \"density_ridges\", coord = coord_cartesian(xlim = c(0, 100)), x = percent, y = year, col = option, colour = \"white\", y_expand = expansion(c(0, 0.125)), alpha = 0.9, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggdist","dir":"Articles","previous_headings":"Overview","what":"ggdist","title":"Extensions","text":"ggdist package enables visualisation uncertainty.","code":"library(ggdist) library(distributional) geom_slabinterval() #> geom_slabinterval: orientation = NA, normalize = all, fill_type = segments, interval_size_domain = c(1, 6), interval_size_range = c(0.6, 1.4), fatten_point = 1.8, arrow = NULL, show_slab = TRUE, show_point = TRUE, show_interval = TRUE, subguide = none, na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity set.seed(123) data.frame( distribution = c(\"Gamma(2,1)\", \"Normal(5,1)\", \"Mixture\"), values = c( dist_gamma(2, 1), dist_normal(5, 1), dist_mixture( dist_gamma(2, 1), dist_normal(5, 1), weights = c(0.4, 0.6)) )) |> gg_blanket( geom = \"slabinterval\", stat = \"slabinterval\", y = distribution, mapping = aes(dist = values), colour = blue, fill = blue, alpha = 0.6, y_expand = c(0.05, 0.05), # show_slab = FALSE, # show_interval = FALSE, # side = \"both\", ) + theme(legend.position = \"none\") geom_lineribbon() #> geom_lineribbon: step = FALSE, orientation = NA, na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity set.seed(123) tibble(x = 1:10) |> group_by(across(everything())) |> do(tibble(y = rnorm(100, .$x))) |> median_qi(.width = c(0.5, 0.8, 0.95)) |> mutate(.width = factor(.width)) |> gg_blanket( geom = \"lineribbon\", x = x, y = y, ymin = .lower, ymax = .upper, col = .width, colour = viridis::mako(n = 9)[c(1)], col_legend_rev = TRUE, col_palette = viridis::mako(n = 9)[c(4,6,9)], )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggdensity","dir":"Articles","previous_headings":"Overview","what":"ggdensity","title":"Extensions","text":"ggdensity package provides visualizations density estimates.","code":"library(ggdensity) geom_hdr() #> geom_hdr: na.rm = FALSE #> stat_hdr: na.rm = FALSE #> position_identity set.seed(123) data.frame( x = rnorm(1000), y = rnorm(1000), z = c(rep(\"A\", times = 500), rep(\"B\", times = 500)) ) |> gg_blanket( geom = \"hdr\", stat = \"hdr\", x = x, y = y, colour = NA, y_symmetric = FALSE, ) + guides(colour = FALSE, fill = FALSE) set.seed(123) data.frame( x = rnorm(1000), y = rnorm(1000), z = c(rep(\"A\", times = 500), rep(\"B\", times = 500)) ) |> gg_blanket( geom = \"hdr\", stat = \"hdr\", x = x, y = y, col = z, facet = z, colour = NA, y_symmetric = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggpattern","dir":"Articles","previous_headings":"Overview","what":"ggpattern","title":"Extensions","text":"","code":"library(ggpattern) penguins2 |> group_by(species, sex) |> summarise(across(body_mass_g, \\(x) mean(x))) |> tidyr::drop_na() |> labelled::copy_labels_from(penguins2) |> gg_blanket( geom = \"col_pattern\", position = \"dodge\", y = species, x = body_mass_g, col = sex, mapping = aes(pattern = sex), width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"paletteer","dir":"Articles","previous_headings":"Overview","what":"paletteer","title":"Extensions","text":"paletteer package provides access palettes within R.","code":"library(paletteer) p1 <- penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, col_palette = paletteer_d(\"RColorBrewer::Dark2\"), x_breaks = breaks_extended(n = 4), ) + theme(legend.position = \"none\") p2 <- penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = bill_depth_mm, col_palette = paletteer_c(\"viridis::rocket\", 9), x_breaks = breaks_extended(n = 4), ) + theme(legend.position = \"none\") p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggblend","dir":"Articles","previous_headings":"Overview","what":"ggblend","title":"Extensions","text":"ggblend package provides blending colours. must use graphics device supports blending.","code":"p1 <- penguins2 |> gg_density( x = flipper_length_mm, col = species, y_symmetric = FALSE, ) + facet_wrap(~\"Normal\") + ggeasy::easy_remove_x_axis() + ggeasy::easy_remove_y_axis() p2 <- penguins2 |> gg_blanket( stat = \"density\", x = flipper_length_mm, col = species, y_symmetric = FALSE, ) + facet_wrap(~\"Blended\") + geom_density(alpha = 0.6) |> ggblend::blend(blend = \"multiply\") + ggeasy::easy_remove_x_axis() + ggeasy::easy_remove_y_axis() p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggh4x","dir":"Articles","previous_headings":"Overview","what":"ggh4x","title":"Extensions","text":"ggh4x package includes enhanced facet functionality.","code":"iris |> rename_with(\\(x) snakecase::to_snake_case(x)) |> mutate(across(species, \\(x) str_to_sentence(x))) |> mutate(size = if_else(species == \"Setosa\", \"Short Leaves\", \"Long Leaves\")) |> gg_point( x = sepal_width, y = sepal_length, x_breaks = breaks_extended(n = 4), ) + ggh4x::facet_nested( cols = vars(size, species), nest_line = TRUE, solo_line = TRUE, ) + theme(strip.text.x = element_text(margin = margin(t = 2.5, b = 5)))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/2_extensions.html","id":"ggeasy","dir":"Articles","previous_headings":"Overview","what":"ggeasy","title":"Extensions","text":"ggeasy package provides lot support easily modifying themes. Removing axes gridlines often useful.","code":"library(ggeasy) penguins2 |> gg_jitter( x = species, y = body_mass_g, col = sex, ) + light_mode_t() + easy_remove_y_gridlines() + easy_remove_x_axis(what = c(\"line\", \"ticks\")) + easy_remove_legend_title()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Demo: light mode","text":"article demonstrate wrapper function.","code":"library(dplyr) library(ggplot2) library(scales) library(ggblanket) library(palmerpenguins) set_blanket() penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\"))) |> tidyr::drop_na(sex) experiment <- data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6)) |> labelled::set_variable_labels( trt = \"Treatment\", resp = \"Response\" )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_area","dir":"Articles","previous_headings":"Overview","what":"gg_area","title":"Demo: light mode","text":"","code":"economics |> gg_area( x = date, y = unemploy, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_bar","dir":"Articles","previous_headings":"Overview","what":"gg_bar","title":"Demo: light mode","text":"","code":"penguins2 |> gg_bar( position = position_dodge(preserve = \"single\"), y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_bin_2d","dir":"Articles","previous_headings":"Overview","what":"gg_bin_2d","title":"Demo: light mode","text":"","code":"diamonds |> gg_bin_2d( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_boxplot","dir":"Articles","previous_headings":"Overview","what":"gg_boxplot","title":"Demo: light mode","text":"","code":"penguins2 |> gg_boxplot( x = flipper_length_mm, y = sex, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_col","dir":"Articles","previous_headings":"Overview","what":"gg_col","title":"Demo: light mode","text":"","code":"penguins2 |> group_by(sex, species) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> labelled::copy_labels_from(penguins2) |> gg_col( position = position_dodge(preserve = \"single\"), x = flipper_length_mm, y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_contour","dir":"Articles","previous_headings":"Overview","what":"gg_contour","title":"Demo: light mode","text":"","code":"faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_contour_filled","dir":"Articles","previous_headings":"Overview","what":"gg_contour_filled","title":"Demo: light mode","text":"","code":"faithfuld |> gg_contour_filled( x = waiting, y = eruptions, z = density, bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_crossbar","dir":"Articles","previous_headings":"Overview","what":"gg_crossbar","title":"Demo: light mode","text":"","code":"experiment |> gg_crossbar( x = trt, y = resp, ymin = lower, ymax = upper, col = group, width = 0.5, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_density","dir":"Articles","previous_headings":"Overview","what":"gg_density","title":"Demo: light mode","text":"","code":"penguins2 |> gg_density( x = flipper_length_mm, col = species, mode = light_mode_t(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_density_2d","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d","title":"Demo: light mode","text":"","code":"faithful |> gg_density_2d( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_density_2d_filled","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d_filled","title":"Demo: light mode","text":"","code":"faithful |> gg_density_2d_filled( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_errorbar","dir":"Articles","previous_headings":"Overview","what":"gg_errorbar","title":"Demo: light mode","text":"","code":"experiment |> gg_errorbar( x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", width = 0.1, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_freqpoly","dir":"Articles","previous_headings":"Overview","what":"gg_freqpoly","title":"Demo: light mode","text":"","code":"penguins2 |> gg_freqpoly( x = flipper_length_mm, col = sex, mode = light_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_function","dir":"Articles","previous_headings":"Overview","what":"gg_function","title":"Demo: light mode","text":"","code":"gg_function( fun = \\(x) dnorm(x, mean = 0, sd = 5), x_expand_limits = qnorm(p = c(0.005, 0.995), mean = 0, sd = 5), x_label = \"X\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_hex","dir":"Articles","previous_headings":"Overview","what":"gg_hex","title":"Demo: light mode","text":"","code":"diamonds |> gg_hex( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_histogram","dir":"Articles","previous_headings":"Overview","what":"gg_histogram","title":"Demo: light mode","text":"","code":"penguins2 |> gg_histogram( x = flipper_length_mm, col = sex, facet = species, bins = 50, mode = light_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_jitter","dir":"Articles","previous_headings":"Overview","what":"gg_jitter","title":"Demo: light mode","text":"","code":"set.seed(123) penguins2 |> gg_jitter( position = position_jitter(), x = species, y = body_mass_g, col = flipper_length_mm, y_expand_limits = 0, col_steps = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_label","dir":"Articles","previous_headings":"Overview","what":"gg_label","title":"Demo: light mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_label( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_line","dir":"Articles","previous_headings":"Overview","what":"gg_line","title":"Demo: light mode","text":"","code":"economics |> gg_line( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_linerange","dir":"Articles","previous_headings":"Overview","what":"gg_linerange","title":"Demo: light mode","text":"","code":"experiment |> gg_linerange( position = position_dodge(width = 0.2), x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_path","dir":"Articles","previous_headings":"Overview","what":"gg_path","title":"Demo: light mode","text":"","code":"economics |> mutate(unemploy_rate = unemploy / pop) |> gg_path( x = unemploy_rate, y = psavert, x_label = \"Unemployment rate\", y_expand_limits = 0, y_label = \"Personal savings rate\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_point","dir":"Articles","previous_headings":"Overview","what":"gg_point","title":"Demo: light mode","text":"","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_pointrange","dir":"Articles","previous_headings":"Overview","what":"gg_pointrange","title":"Demo: light mode","text":"","code":"experiment |> gg_pointrange( position = position_dodge(width = 0.2), x = trt, y = resp, col = group, ymin = lower, ymax = upper, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_polygon","dir":"Articles","previous_headings":"Overview","what":"gg_polygon","title":"Demo: light mode","text":"","code":"ids <- factor(c(\"1.1\", \"2.1\", \"1.2\", \"2.2\", \"1.3\", \"2.3\")) values <- data.frame( id = ids, value = c(3, 3.1, 3.1, 3.2, 3.15, 3.5) ) positions <- data.frame( id = rep(ids, each = 4), x = c(2, 1, 1.1, 2.2, 1, 0, 0.3, 1.1, 2.2, 1.1, 1.2, 2.5, 1.1, 0.3, 0.5, 1.2, 2.5, 1.2, 1.3, 2.7, 1.2, 0.5, 0.6, 1.3), y = c(-0.5, 0, 1, 0.5, 0, 0.5, 1.5, 1, 0.5, 1, 2.1, 1.7, 1, 1.5, 2.2, 2.1, 1.7, 2.1, 3.2, 2.8, 2.1, 2.2, 3.3, 3.2) ) datapoly <- merge(values, positions, by = c(\"id\")) datapoly |> gg_polygon( x = x, y = y, col = value, group = id, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_qq","dir":"Articles","previous_headings":"Overview","what":"gg_qq","title":"Demo: light mode","text":"","code":"penguins2 |> gg_qq( sample = body_mass_g, facet = species, coord = coord_cartesian(clip = \"on\"), ) + geom_qq_line()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_quantile","dir":"Articles","previous_headings":"Overview","what":"gg_quantile","title":"Demo: light mode","text":"","code":"penguins2 |> gg_quantile( x = flipper_length_mm, y = body_mass_g, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_raster","dir":"Articles","previous_headings":"Overview","what":"gg_raster","title":"Demo: light mode","text":"","code":"faithfuld |> gg_raster( x = waiting, y = eruptions, col = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_rect","dir":"Articles","previous_headings":"Overview","what":"gg_rect","title":"Demo: light mode","text":"","code":"data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(c(rep(1:4, each = 2), 5, NA)), w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)) |> mutate( xmin = x - w / 2, xmax = x + w / 2, ymin = y, ymax = y + 1 ) |> gg_rect( xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax, col = z, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_ribbon","dir":"Articles","previous_headings":"Overview","what":"gg_ribbon","title":"Demo: light mode","text":"","code":"data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |> mutate(level_min = level - 1, level_max = level + 1) |> gg_ribbon( x = year, ymin = level_min, ymax = level_max, colour = NA, x_labels = \\(x) x, y_label = \"Level\", ) + geom_line(mapping = aes(x = year, y = level))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_rug","dir":"Articles","previous_headings":"Overview","what":"gg_rug","title":"Demo: light mode","text":"","code":"penguins2 |> gg_rug( x = flipper_length_mm, y = body_mass_g, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_segment","dir":"Articles","previous_headings":"Overview","what":"gg_segment","title":"Demo: light mode","text":"","code":"data.frame(x1 = 2.62, x2 = 3.57, y1 = 21.0, y2 = 15.0) |> gg_segment( x = x1, xend = x2, y = y1, yend = y2, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_sf","dir":"Articles","previous_headings":"Overview","what":"gg_sf","title":"Demo: light mode","text":"","code":"sf::st_read(system.file(\"shape/nc.shp\", package = \"sf\")) |> gg_sf( col = AREA, ) #> Reading layer `nc' from data source #> `/home/runner/work/_temp/Library/sf/shape/nc.shp' using driver `ESRI Shapefile' #> Simple feature collection with 100 features and 14 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965 #> Geodetic CRS: NAD27"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_smooth","dir":"Articles","previous_headings":"Overview","what":"gg_smooth","title":"Demo: light mode","text":"","code":"penguins2 |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, se = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_step","dir":"Articles","previous_headings":"Overview","what":"gg_step","title":"Demo: light mode","text":"","code":"economics |> filter(date > lubridate::ymd(\"2010-01-01\")) |> gg_step( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_text","dir":"Articles","previous_headings":"Overview","what":"gg_text","title":"Demo: light mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_text( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_tile","dir":"Articles","previous_headings":"Overview","what":"gg_tile","title":"Demo: light mode","text":"","code":"penguins2 |> group_by(species, sex) |> summarise(flipper_length_mm = mean(flipper_length_mm, na.rm = TRUE)) |> labelled::copy_labels_from(penguins2) |> gg_tile( x = sex, y = species, col = flipper_length_mm, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_violin","dir":"Articles","previous_headings":"Overview","what":"gg_violin","title":"Demo: light mode","text":"","code":"penguins2 |> gg_violin( x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/3_demo_light.html","id":"gg_blanket","dir":"Articles","previous_headings":"Overview","what":"gg_blanket","title":"Demo: light mode","text":"","code":"penguins2 |> gg_blanket( geom = \"violin\", stat = \"ydensity\", position = \"dodge\", x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"Demo: dark mode","text":"article demonstrate wrapper function.","code":"library(dplyr) library(ggplot2) library(scales) library(ggblanket) library(palmerpenguins) set_blanket( mode = dark_mode_r(), annotation_colour = darkness[1], col_palette_d = c(teal, orange, purple, red, pink, navy), col_palette_c = viridis::mako(n = 9), col_palette_o = scales::pal_viridis(option = \"G\"), ) penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\"))) |> tidyr::drop_na(sex) experiment <- data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6)) |> labelled::set_variable_labels( trt = \"Treatment\", resp = \"Response\" )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_area","dir":"Articles","previous_headings":"Overview","what":"gg_area","title":"Demo: dark mode","text":"","code":"economics |> gg_area( x = date, y = unemploy, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_bar","dir":"Articles","previous_headings":"Overview","what":"gg_bar","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_bar( position = position_dodge(preserve = \"single\"), y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_bin_2d","dir":"Articles","previous_headings":"Overview","what":"gg_bin_2d","title":"Demo: dark mode","text":"","code":"diamonds |> gg_bin_2d( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_boxplot","dir":"Articles","previous_headings":"Overview","what":"gg_boxplot","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_boxplot( x = flipper_length_mm, y = sex, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_col","dir":"Articles","previous_headings":"Overview","what":"gg_col","title":"Demo: dark mode","text":"","code":"penguins2 |> group_by(sex, species) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> labelled::copy_labels_from(penguins2) |> gg_col( position = position_dodge(preserve = \"single\"), x = flipper_length_mm, y = species, col = sex, width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_contour","dir":"Articles","previous_headings":"Overview","what":"gg_contour","title":"Demo: dark mode","text":"","code":"faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_contour_filled","dir":"Articles","previous_headings":"Overview","what":"gg_contour_filled","title":"Demo: dark mode","text":"","code":"faithfuld |> gg_contour_filled( x = waiting, y = eruptions, z = density, bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_crossbar","dir":"Articles","previous_headings":"Overview","what":"gg_crossbar","title":"Demo: dark mode","text":"","code":"experiment |> gg_crossbar( x = trt, y = resp, ymin = lower, ymax = upper, col = group, width = 0.5, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_density","dir":"Articles","previous_headings":"Overview","what":"gg_density","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_density( x = flipper_length_mm, col = species, mode = dark_mode_t(), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_density_2d","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d","title":"Demo: dark mode","text":"","code":"faithful |> gg_density_2d( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_density_2d_filled","dir":"Articles","previous_headings":"Overview","what":"gg_density_2d_filled","title":"Demo: dark mode","text":"","code":"faithful |> gg_density_2d_filled( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_errorbar","dir":"Articles","previous_headings":"Overview","what":"gg_errorbar","title":"Demo: dark mode","text":"","code":"experiment |> gg_errorbar( x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", width = 0.1, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_freqpoly","dir":"Articles","previous_headings":"Overview","what":"gg_freqpoly","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_freqpoly( x = flipper_length_mm, col = sex, mode = dark_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_function","dir":"Articles","previous_headings":"Overview","what":"gg_function","title":"Demo: dark mode","text":"","code":"gg_function( fun = \\(x) dnorm(x, mean = 0, sd = 5), x_expand_limits = qnorm(p = c(0.005, 0.995), mean = 0, sd = 5), x_label = \"X\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_hex","dir":"Articles","previous_headings":"Overview","what":"gg_hex","title":"Demo: dark mode","text":"","code":"diamonds |> gg_hex( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_histogram","dir":"Articles","previous_headings":"Overview","what":"gg_histogram","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_histogram( x = flipper_length_mm, col = sex, facet = species, bins = 50, mode = dark_mode_t(), ) + theme(legend.title = element_blank())"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_jitter","dir":"Articles","previous_headings":"Overview","what":"gg_jitter","title":"Demo: dark mode","text":"","code":"set.seed(123) penguins2 |> gg_jitter( position = position_jitter(), x = species, y = body_mass_g, col = flipper_length_mm, y_expand_limits = 0, col_steps = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_label","dir":"Articles","previous_headings":"Overview","what":"gg_label","title":"Demo: dark mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_label( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_line","dir":"Articles","previous_headings":"Overview","what":"gg_line","title":"Demo: dark mode","text":"","code":"economics |> gg_line( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_linerange","dir":"Articles","previous_headings":"Overview","what":"gg_linerange","title":"Demo: dark mode","text":"","code":"experiment |> gg_linerange( position = position_dodge(width = 0.2), x = trt, ymin = lower, ymax = upper, col = group, y_label = \"Response\", y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_path","dir":"Articles","previous_headings":"Overview","what":"gg_path","title":"Demo: dark mode","text":"","code":"economics |> mutate(unemploy_rate = unemploy / pop) |> gg_path( x = unemploy_rate, y = psavert, x_label = \"Unemployment rate\", y_expand_limits = 0, y_label = \"Personal savings rate\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_point","dir":"Articles","previous_headings":"Overview","what":"gg_point","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_pointrange","dir":"Articles","previous_headings":"Overview","what":"gg_pointrange","title":"Demo: dark mode","text":"","code":"experiment |> gg_pointrange( position = position_dodge(width = 0.2), x = trt, y = resp, col = group, ymin = lower, ymax = upper, y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_polygon","dir":"Articles","previous_headings":"Overview","what":"gg_polygon","title":"Demo: dark mode","text":"","code":"ids <- factor(c(\"1.1\", \"2.1\", \"1.2\", \"2.2\", \"1.3\", \"2.3\")) values <- data.frame( id = ids, value = c(3, 3.1, 3.1, 3.2, 3.15, 3.5) ) positions <- data.frame( id = rep(ids, each = 4), x = c(2, 1, 1.1, 2.2, 1, 0, 0.3, 1.1, 2.2, 1.1, 1.2, 2.5, 1.1, 0.3, 0.5, 1.2, 2.5, 1.2, 1.3, 2.7, 1.2, 0.5, 0.6, 1.3), y = c(-0.5, 0, 1, 0.5, 0, 0.5, 1.5, 1, 0.5, 1, 2.1, 1.7, 1, 1.5, 2.2, 2.1, 1.7, 2.1, 3.2, 2.8, 2.1, 2.2, 3.3, 3.2) ) datapoly <- merge(values, positions, by = c(\"id\")) datapoly |> gg_polygon( x = x, y = y, col = value, group = id, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_qq","dir":"Articles","previous_headings":"Overview","what":"gg_qq","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_qq( sample = body_mass_g, facet = species, coord = coord_cartesian(clip = \"on\"), ) + geom_qq_line()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_quantile","dir":"Articles","previous_headings":"Overview","what":"gg_quantile","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_quantile( x = flipper_length_mm, y = body_mass_g, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_raster","dir":"Articles","previous_headings":"Overview","what":"gg_raster","title":"Demo: dark mode","text":"","code":"faithfuld |> gg_raster( x = waiting, y = eruptions, col = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_rect","dir":"Articles","previous_headings":"Overview","what":"gg_rect","title":"Demo: dark mode","text":"","code":"data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(c(rep(1:4, each = 2), 5, NA)), w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)) |> mutate( xmin = x - w / 2, xmax = x + w / 2, ymin = y, ymax = y + 1 ) |> gg_rect( xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax, col = z, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_ribbon","dir":"Articles","previous_headings":"Overview","what":"gg_ribbon","title":"Demo: dark mode","text":"","code":"data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |> mutate(level_min = level - 1, level_max = level + 1) |> gg_ribbon( x = year, ymin = level_min, ymax = level_max, colour = NA, x_labels = \\(x) x, y_label = \"Level\", ) + geom_line(mapping = aes(x = year, y = level))"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_rug","dir":"Articles","previous_headings":"Overview","what":"gg_rug","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_rug( x = flipper_length_mm, y = body_mass_g, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_segment","dir":"Articles","previous_headings":"Overview","what":"gg_segment","title":"Demo: dark mode","text":"","code":"data.frame(x1 = 2.62, x2 = 3.57, y1 = 21.0, y2 = 15.0) |> gg_segment( x = x1, xend = x2, y = y1, yend = y2, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_sf","dir":"Articles","previous_headings":"Overview","what":"gg_sf","title":"Demo: dark mode","text":"","code":"sf::st_read(system.file(\"shape/nc.shp\", package = \"sf\")) |> gg_sf( col = AREA, ) #> Reading layer `nc' from data source #> `/home/runner/work/_temp/Library/sf/shape/nc.shp' using driver `ESRI Shapefile' #> Simple feature collection with 100 features and 14 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965 #> Geodetic CRS: NAD27"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_smooth","dir":"Articles","previous_headings":"Overview","what":"gg_smooth","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, se = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_step","dir":"Articles","previous_headings":"Overview","what":"gg_step","title":"Demo: dark mode","text":"","code":"economics |> filter(date > lubridate::ymd(\"2010-01-01\")) |> gg_step( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_text","dir":"Articles","previous_headings":"Overview","what":"gg_text","title":"Demo: dark mode","text":"","code":"bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg)) |> tibble::rownames_to_column(\"model\") |> gg_text( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_tile","dir":"Articles","previous_headings":"Overview","what":"gg_tile","title":"Demo: dark mode","text":"","code":"penguins2 |> group_by(species, sex) |> summarise(flipper_length_mm = mean(flipper_length_mm, na.rm = TRUE)) |> labelled::copy_labels_from(penguins2) |> gg_tile( x = sex, y = species, col = flipper_length_mm, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_violin","dir":"Articles","previous_headings":"Overview","what":"gg_violin","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_violin( x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/4_demo_dark.html","id":"gg_blanket","dir":"Articles","previous_headings":"Overview","what":"gg_blanket","title":"Demo: dark mode","text":"","code":"penguins2 |> gg_blanket( geom = \"violin\", stat = \"ydensity\", position = \"dodge\", x = sex, y = body_mass_g, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"overview","dir":"Articles","previous_headings":"","what":"Overview","title":"ggblanket","text":"ggblanket package ggplot2 wrapper functions. primary objective simplify ggplot2 visualisation. Secondary objectives relate : Design: produce well-designed visualisation Alignment: align ggplot2 tidyverse Scope: cover much ggplot2 . Computational speed traded-.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"how-it-works","dir":"Articles","previous_headings":"","what":"How it works","title":"ggblanket","text":"First setup set_blanket() gg_* function wraps geom merged col argument colour/fill variable facet argument facet variable facet2 argument facet 2nd variable aesthetics via mapping argument Prefixed arguments customise x/y/col/facet Smart *_label defaults axis legend titles ggplot2::geom_* arguments via ... Families *_mode_* themes legend variants Side-effects mode based mode_orientation One *_symmetric continuous scale Ability add multiple geom_* layers Arguments customise setup set_blanket() gg_blanket() function geom flexibility","code":"library(dplyr) library(stringr) library(ggplot2) library(scales) library(ggblanket) library(palmerpenguins) library(patchwork) penguins2 <- penguins |> labelled::set_variable_labels( bill_length_mm = \"Bill length (mm)\", bill_depth_mm = \"Bill depth (mm)\", flipper_length_mm = \"Flipper length (mm)\", body_mass_g = \"Body mass (g)\", ) |> mutate(sex = factor(sex, labels = c(\"Female\", \"Male\"))) |> tidyr::drop_na(sex)"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"first-setup-with-set_blanket","dir":"Articles","previous_headings":"How it works","what":"1. First setup with set_blanket()","title":"ggblanket","text":"set_blanket() function run first. sets default style plots themes colours etc. can customised. run start every script quarto document.","code":"set_blanket()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"each-gg_-function-wraps-a-geom","dir":"Articles","previous_headings":"How it works","what":"2. Each gg_* function wraps a geom","title":"ggblanket","text":"gg_* function wraps ggplot2::ggplot() function associated ggplot2::geom_*() function. Almost every geom ggplot2 wrapped. Position related aesthetics can added directly arguments.","code":"penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-merged-col-argument-to-colourfill-by-a-variable","dir":"Articles","previous_headings":"How it works","what":"3. A merged col argument to colour/fill by a variable","title":"ggblanket","text":"colour fill aesthetics ggplot2 merged single concept represented col argument. combined aesthetic means colour outlines fill interiors coloured col_palette col variable. Use colour = NA fill = NA turn one .","code":"penguins2 |> gg_boxplot( x = flipper_length_mm, y = island, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-facet-argument-to-facet-by-a-variable","dir":"Articles","previous_headings":"How it works","what":"4. A facet argument to facet by a variable","title":"ggblanket","text":"Users provide unquoted facet variable facet . facet specified, facet_layout default \"wrap\" facet variable (facet2 = NULL).","code":"penguins2 |> gg_histogram( x = flipper_length_mm, facet = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-facet2-argument-to-facet-by-a-2nd-variable","dir":"Articles","previous_headings":"How it works","what":"5. A facet2 argument to facet by a 2nd variable","title":"ggblanket","text":"Users can also provide unquoted facet2 variable facet . facet2 specified, facet_layout default \"grid\" facet variable (horizontally) facet2 variable (vertically).","code":"penguins2 |> gg_histogram( x = flipper_length_mm, facet = species, facet2 = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"other-aesthetics-via-mapping-argument","dir":"Articles","previous_headings":"How it works","what":"6. Other aesthetics via mapping argument","title":"ggblanket","text":"aesthetics available via argument (e.g. alpha, size, shape, linetype linewidth). can accessed via mapping argument using aes() function. customise associated scales/guides, + applicable ggplot2 layer. situations, may reverse values relevant scale etc. Note can use set_blanket(geom_colour = lightness[1], ...) make legend symbols black needed.","code":"penguins2 |> gg_jitter( x = species, y = flipper_length_mm, col = island, mapping = aes(shape = island), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"prefixed-arguments-to-customise-xycolfacet","dir":"Articles","previous_headings":"How it works","what":"7. Prefixed arguments to customise x/y/col/facet","title":"ggblanket","text":"numerous arguments customise plots prefixed whether relate x, y, col facet. x, y col, relate associated arguments within ggplot2 scales guides. facet, relate associated arguments within ggplot2::facet_wrap ggplot2::facet_grid. Scales guides associated aesthetics can customised adding applicable ggplot2 layer.","code":"penguins2 |> gg_jitter( x = flipper_length_mm, y = body_mass_g, col = flipper_length_mm, x_breaks = scales::breaks_extended(n = 4, only.loose = TRUE), x_labels = \\(x) stringr::str_sub(x, 1, 1), y_expand_limits = 1000, y_labels = label_number(big.mark = \" \"), y_transform = \"log10\", col_label = \"Flipper\\nlength (mm)\", col_steps = TRUE, col_breaks = \\(x) quantile(x, seq(0, 1, 0.25)), col_palette = viridis::rocket(n = 9, direction = -1), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"smart-_label-defaults-for-axis-and-legend-titles","dir":"Articles","previous_headings":"How it works","what":"8. Smart *_label defaults for axis and legend titles","title":"ggblanket","text":"x_label, y_label col_label axis legend titles can manually specified applicable *_label argument (+ ggplot2::labs(...)). specified, first take label attribute associated applicable variable. none, convert variable name label name using label_to_case function, defaults sentence case (.e. snakecase::to_sentence_case).","code":"penguins2 |> gg_freqpoly( x = flipper_length_mm, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"other-ggplot2geom_-arguments-via----","dir":"Articles","previous_headings":"How it works","what":"9. Other ggplot2::geom_* arguments via ...","title":"ggblanket","text":"... argument provides access arguments ggplot2::geom_*() function. Common arguments add include colour, fill, alpha, linewidth, linetype, size width, enables fixing particular value. Use ggplot2::geom_* help see arguments available.","code":"penguins2 |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, col_palette = c(\"#003F5CFF\", \"#FFA600FF\"), colour = \"#BC5090FF\", linewidth = 1, linetype = \"dashed\", alpha = 1, se = TRUE, level = 0.999, )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"families-of-_mode_-themes-with-legend-variants","dir":"Articles","previous_headings":"How it works","what":"10. Families of *_mode_* themes with legend variants","title":"ggblanket","text":"light_mode_* dark_mode_* theme families provided variants differ based legend placement suffix r (right), b (bottom), t (top). functions built use mode argument - flexibility adjust colours, linewidths etc.","code":"penguins2 |> gg_histogram( x = flipper_length_mm, col = species, title = \"Penguin flipper length by species\", subtitle = \"Palmer Archipelago, Antarctica\", caption = \"Source: Gorman, 2020\", mode = dark_mode_t() + theme(legend.title = element_blank()), )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"side-effects-to-the-mode-based-on-the-mode_orientation","dir":"Articles","previous_headings":"How it works","what":"11. Side-effects to the mode based on the mode_orientation","title":"ggblanket","text":"gg_* function adds helpful side-effects mode. mode_orientation = \"x\", gg_* function remove y axis line/ticks x gridlines mode. mode_orientation = \"y\", opposite occur. gg_* guesses incorrect mode_orientation, user can change . reason, mode used designed anticipate side-effects. avoid side-effects, instead + theme gg_* output (use theme argument set_blanket).","code":"p1 <- penguins2 |> gg_jitter( x = sex, y = bill_depth_mm, ) p2 <- penguins2 |> gg_jitter( x = bill_depth_mm, y = sex, ) p1 + p2"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"one-_symmetric-continuous-scale","dir":"Articles","previous_headings":"How it works","what":"12. One *_symmetric continuous scale","title":"ggblanket","text":"One *_symmetric continuous scale can made : *_transform linear stat “sf” faceted, relevant scale fixed default, gg_* function make x_symmetric scale y discrete axis x continuous axis. Otherwise, make y_symmetric scale. y_symmetric axis makes: limits locked range y_breaks y_expand default c(0, 0). vice versa occurs x_symmetric axis. Use *_symmetric = FALSE revert normal limits expand defaults (.e. limits range data including *_expand_limits *_expand = c(0.05, 0.05)). Note continuous scales ensure data kept using scales::oob_keep - , default, left unclipped (.e. coord_cartesian(clip = \"\").","code":""},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"ability-to-add-multiple-geom_-layers","dir":"Articles","previous_headings":"How it works","what":"13. Ability to add multiple geom_* layers","title":"ggblanket","text":"Users can make plots multiple ggplot2::geom_* layers. gg_*() geom layer bottom geom layer plot, subsequent geom_*() layer placed top. Aesthetics added directly (e.g. x, y etc.) gg_*() function inherit later geom_*() layers, whereas added mapping argument . scales built within gg_*() function without knowledge later layers. gg_*() function builds scales regard stat, position, aesthetics (geom understands) etc. , situations, users need take care.","code":"penguins2 |> gg_violin( x = species, y = bill_depth_mm, outliers = FALSE, ) + geom_boxplot( width = 0.25, colour = lightness[1], fill = lightness[2], ) + geom_jitter( colour = navy, ) penguins2 |> group_by(species, sex) |> summarise( lower = quantile(bill_depth_mm, probs = 0.05), upper = quantile(bill_depth_mm, probs = 0.95), bill_depth_mm = mean(bill_depth_mm, na.rm = TRUE), ) |> labelled::copy_labels_from(penguins2) |> gg_blanket( y = species, x = bill_depth_mm, xmin = lower, xmax = upper, col = sex, position = position_dodge(width = 0.75), x_expand_limits = 0, ) + geom_col( width = 0.75, position = position_dodge(width = 0.75), alpha = 0.9, ) + geom_errorbar( width = 0.1, position = position_dodge(width = 0.75), colour = lightness[1], )"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"arguments-to-customise-setup-with-set_blanket","dir":"Articles","previous_headings":"How it works","what":"14. Arguments to customise setup with set_blanket()","title":"ggblanket","text":"set_blanket function sets customisable defaults : mode (.e. theme added side-effects) colour (.e. colour/fill used colour aesthetic scale) annotation colour etc (.e. geoms commonly used annotation) discrete colour palette (NA colour) continuous colour palette (NA colour) theme (.e. theme added side-effects) ggplot2::update_geom_defaults() function can used fine-tune geom defaults. set_blanket() also works ggplot2 code.","code":"set_blanket( mode = dark_mode_r(), colour = \"#E7298AFF\", annotation_colour = darkness[1], col_palette_d = c(\"#1B9E77FF\", \"#D95F02FF\", \"#7570b3FF\", \"#E7298AFF\", \"#66A61EFF\", \"#E6AB02FF\", \"#A6761DFF\", \"#666666FF\"), #RColorBrewer Dark2 ) p1 <- penguins2 |> gg_point( x = flipper_length_mm, y = body_mass_g, x_breaks = breaks_extended(n = 4, only.loose = TRUE), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.25), y = I(0.75), label = \"Here\") p2 <- penguins2 |> gg_histogram( x = flipper_length_mm, col = species, x_breaks = breaks_extended(n = 4, only.loose = TRUE), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.75), y = I(0.75), label = \"Here\") p1 + p2 set_blanket()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"a-gg_blanket-function-with-geom-flexibility","dir":"Articles","previous_headings":"How it works","what":"15. A gg_blanket() function with geom flexibility","title":"ggblanket","text":"package driven gg_blanket function, geom argument ggplot2::geom_blank defaults geom, stat position. functions wrap function fixed geom, default stat position arguments per applicable geom_* function. function can often used geoms associated gg_* function.","code":"geom_spoke() #> geom_spoke: na.rm = FALSE #> stat_identity: na.rm = FALSE #> position_identity expand.grid(x = 1:10, y = 1:10) |> tibble() |> mutate(angle = runif(100, 0, 2*pi)) |> mutate(speed = runif(100, 0, sqrt(0.1 * x))) |> gg_blanket( geom = \"spoke\", x = x, y = y, col = speed, mapping = aes(angle = angle, radius = speed), ) + geom_point()"},{"path":"https://davidhodge931.github.io/ggblanket/articles/ggblanket.html","id":"further-information","dir":"Articles","previous_headings":"","what":"Further information","title":"ggblanket","text":"See ggblanket website information, including articles function reference.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"David Hodge. Author, maintainer, copyright holder.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Hodge D (2024). ggblanket: Simplify 'ggplot2' Visualisation. R package version 9.1.9.9000, https://github.com/davidhodge931/ggblanket, https://davidhodge931.github.io/ggblanket/.","code":"@Manual{, title = {ggblanket: Simplify 'ggplot2' Visualisation}, author = {David Hodge}, year = {2024}, note = {R package version 9.1.9.9000, https://github.com/davidhodge931/ggblanket}, url = {https://davidhodge931.github.io/ggblanket/}, }"},{"path":[]},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Simplify ggplot2 Visualisation","text":"ggblanket package ggplot2 wrapper functions. primary objective simplify ggplot2 visualisation. Secondary objectives relate : Design: produce well-designed visualisation Alignment: align ggplot2 tidyverse Scope: cover much ggplot2 . Computational speed traded-.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Simplify ggplot2 Visualisation","text":"","code":"install.packages(\"ggblanket\")"},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"example","dir":"","previous_headings":"","what":"Example","title":"Simplify ggplot2 Visualisation","text":"","code":"library(ggblanket) library(palmerpenguins) set_blanket() penguins |> gg_histogram( x = flipper_length_mm, col = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"get-started","dir":"","previous_headings":"","what":"Get started","title":"Simplify ggplot2 Visualisation","text":"Click start learning ggblanket works.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/index.html","id":"thank-you","dir":"","previous_headings":"","what":"Thank you","title":"Simplify ggplot2 Visualisation","text":"Thanks developers ggplot2, tidyverse R ecosystem. Dad, always missed (Peter Hodge, 1953-2023).","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":null,"dir":"Reference","previous_headings":"","what":"An auto-contrast colour aesthetic — aes_contrast","title":"An auto-contrast colour aesthetic — aes_contrast","text":"colour aesthetic annotation automatically contrasts fill. Can spliced ggplot2::aes rlang::!!!.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"An auto-contrast colour aesthetic — aes_contrast","text":"","code":"aes_contrast(..., dark = \"#121B24FF\", light = \"#FFFFFFFF\")"},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"An auto-contrast colour aesthetic — aes_contrast","text":"... Provided force user argument naming etc. dark dark colour. light light colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"An auto-contrast colour aesthetic — aes_contrast","text":"aesthetic","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/aes_contrast.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"An auto-contrast colour aesthetic — aes_contrast","text":"","code":"library(ggplot2) library(dplyr) #> #> Attaching package: ‘dplyr’ #> The following objects are masked from ‘package:stats’: #> #> filter, lag #> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union library(stringr) library(palmerpenguins) set_blanket() penguins |> count(species, sex) |> gg_col( x = sex, y = n, col = species, position = position_dodge2(preserve = \"single\"), width = 0.75, x_labels = \\(x) str_to_sentence(x), ) + geom_text( mapping = aes(label = n, !!!aes_contrast()), position = position_dodge2(width = 0.75, preserve = \"single\"), vjust = 1.33, show.legend = FALSE, ) penguins |> count(species, sex) |> gg_col( x = sex, y = n, col = species, position = position_dodge2(preserve = \"single\"), width = 0.75, x_labels = \\(x) str_to_sentence(x), mode = dark_mode_r(), ) + geom_text( mapping = aes(label = n, !!!aes_contrast(dark = darkness[3], light = darkness[1])), position = position_dodge2(width = 0.75, preserve = \"single\"), vjust = 1.33, show.legend = FALSE, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":null,"dir":"Reference","previous_headings":"","what":"A blue colour — blue","title":"A blue colour — blue","text":"blue colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A blue colour — blue","text":"","code":"blue"},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"A blue colour — blue","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/blue.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"A blue colour — blue","text":"","code":"scales::show_col(blue)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":null,"dir":"Reference","previous_headings":"","what":"Dark mode theme family — dark_mode_r","title":"Dark mode theme family — dark_mode_r","text":"dark mode family functions: dark_mode_r() legend right dark_mode_t() legend top dark_mode_b() legend bottom","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dark mode theme family — dark_mode_r","text":"","code":"dark_mode_r( ..., base_size = 11, base_family = \"\", base_colour = \"#C8D7DFFF\", axis_line_colour = \"#C8D7DFFF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#00040AFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#050D1BFF\", plot_background_fill = \"#00040AFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) dark_mode_t( ..., base_size = 11, base_family = \"\", base_colour = \"#C8D7DFFF\", axis_line_colour = \"#C8D7DFFF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#00040AFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#050D1BFF\", plot_background_fill = \"#00040AFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) dark_mode_b( ..., base_size = 11, base_family = \"\", base_colour = \"#C8D7DFFF\", axis_line_colour = \"#C8D7DFFF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#00040AFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#050D1BFF\", plot_background_fill = \"#00040AFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dark mode theme family — dark_mode_r","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_colour base colour text theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Dark mode theme family — dark_mode_r","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/dark_mode_r.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Dark mode theme family — dark_mode_r","text":"","code":"library(palmerpenguins) library(ggplot2) set_blanket() penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = dark_mode_r() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = dark_mode_t() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = dark_mode_b() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":null,"dir":"Reference","previous_headings":"","what":"Flexible mode with bottom legend — flex_mode_b","title":"Flexible mode with bottom legend — flex_mode_b","text":"Flexible mode legend bottom.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flexible mode with bottom legend — flex_mode_b","text":"","code":"flex_mode_b( ..., base_size = 11, base_family = \"\", base_face = \"plain\", base_colour = \"#121B24FF\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_face = \"bold\", plot_title_colour = base_colour, plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_face = \"plain\", plot_subtitle_colour = base_colour, plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_face = \"plain\", plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flexible mode with bottom legend — flex_mode_b","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_face base face text theme element. Defaults \"plain\". base_colour base colour text theme element. plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_face face plot.title theme element. plot_title_colour colour plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_b.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Flexible mode with bottom legend — flex_mode_b","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":null,"dir":"Reference","previous_headings":"","what":"Mode theme base — flex_mode_base","title":"Mode theme base — flex_mode_base","text":"Theme base *_mode_* functions.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mode theme base — flex_mode_base","text":"","code":"flex_mode_base( base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", base_face = \"plain\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_colour = base_colour, plot_title_face = \"bold\", plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_colour = base_colour, plot_subtitle_face = \"plain\", plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_face = \"plain\", plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mode theme base — flex_mode_base","text":"base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_colour base colour text theme element. base_face base face text theme element. Defaults \"plain\". plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_colour colour plot.title theme element. plot_title_face face plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_base.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mode theme base — flex_mode_base","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":null,"dir":"Reference","previous_headings":"","what":"Flexible mode with right legend — flex_mode_r","title":"Flexible mode with right legend — flex_mode_r","text":"Flexible mode right legend.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flexible mode with right legend — flex_mode_r","text":"","code":"flex_mode_r( ..., base_size = 11, base_family = \"\", base_face = \"plain\", base_colour = \"#121B24FF\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_face = \"bold\", plot_title_colour = base_colour, plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_face = \"plain\", plot_subtitle_colour = base_colour, plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_face = \"plain\", plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flexible mode with right legend — flex_mode_r","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_face base face text theme element. Defaults \"plain\". base_colour base colour text theme element. plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_face face plot.title theme element. plot_title_colour colour plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_r.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Flexible mode with right legend — flex_mode_r","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":null,"dir":"Reference","previous_headings":"","what":"Flexible mode with top legend — flex_mode_t","title":"Flexible mode with top legend — flex_mode_t","text":"Flexible mode legend top.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flexible mode with top legend — flex_mode_t","text":"","code":"flex_mode_t( ..., base_size = 11, base_family = \"\", base_face = \"plain\", base_colour = \"#121B24FF\", plot_title_size = ggplot2::rel(1.1), plot_title_family = base_family, plot_title_face = \"bold\", plot_title_colour = base_colour, plot_subtitle_size = ggplot2::rel(1), plot_subtitle_family = base_family, plot_subtitle_face = \"plain\", plot_subtitle_colour = base_colour, plot_caption_size = ggplot2::rel(0.85), plot_caption_family = base_family, plot_caption_face = \"plain\", plot_caption_colour = colorspace::lighten(base_colour, 0.1), plot_caption_hjust = 0, axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flexible mode with top legend — flex_mode_t","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_face base face text theme element. Defaults \"plain\". base_colour base colour text theme element. plot_title_size size plot.title theme element. plot_title_family family plot.title theme element. plot_title_face face plot.title theme element. plot_title_colour colour plot.title theme element. plot_subtitle_size size plot.subtitle theme element. plot_subtitle_family family plot.subtitle theme element. plot_subtitle_face face plot.subtitle theme element. plot_subtitle_colour colour plot.subtitle theme element. plot_caption_size size plot.caption theme element. plot_caption_family family plot.caption theme element. plot_caption_face face plot.caption theme element. plot_caption_colour colour plot.caption theme element. plot_caption_hjust horizontal adjustment plot.caption theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/flex_mode_t.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Flexible mode with top legend — flex_mode_t","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":null,"dir":"Reference","previous_headings":"","what":"Area ggplot — gg_area","title":"Area ggplot — gg_area","text":"Create area ggplot wrapper around ggplot2::ggplot() + geom_area().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Area ggplot — gg_area","text":"","code":"gg_area( data = NULL, ..., stat = \"align\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Area ggplot — gg_area","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Area ggplot — gg_area","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_area.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Area ggplot — gg_area","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> gg_area( x = date, y = unemploy, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":null,"dir":"Reference","previous_headings":"","what":"Bar ggplot — gg_bar","title":"Bar ggplot — gg_bar","text":"Create bar ggplot wrapper around ggplot2::ggplot() + geom_bar().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bar ggplot — gg_bar","text":"","code":"gg_bar( data = NULL, ..., stat = \"count\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bar ggplot — gg_bar","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bar ggplot — gg_bar","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bar.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Bar ggplot — gg_bar","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_bar( y = species, col = sex, position = position_dodge(preserve = \"single\"), width = 0.75, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":null,"dir":"Reference","previous_headings":"","what":"Bin_2d ggplot — gg_bin_2d","title":"Bin_2d ggplot — gg_bin_2d","text":"Create bin2d ggplot wrapper around ggplot2::ggplot() + geom_bin_2d().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bin_2d ggplot — gg_bin_2d","text":"","code":"gg_bin_2d( data = NULL, ..., stat = \"bin2d\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bin_2d ggplot — gg_bin_2d","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bin_2d ggplot — gg_bin_2d","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_bin_2d.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Bin_2d ggplot — gg_bin_2d","text":"","code":"library(ggplot2) library(dplyr) set_blanket() diamonds |> gg_bin_2d( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":null,"dir":"Reference","previous_headings":"","what":"Blanket ggplot — gg_blanket","title":"Blanket ggplot — gg_blanket","text":"Create blanket ggplot wrapper around ggplot2::ggplot() + layer() geom_blank() defaults. function underlies gg_* functions. contains geom argument maximum flexibility.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Blanket ggplot — gg_blanket","text":"","code":"gg_blanket( data = NULL, ..., geom = \"blank\", stat = \"identity\", position = \"identity\", coord = NULL, mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Blanket ggplot — gg_blanket","text":"data data frame tibble. ... arguments passed within params list layer(). geom geometric object display data. snakecase character string ggproto Geom subclass object minus Geom prefix (e.g. \"point\"). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Blanket ggplot — gg_blanket","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_blanket.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Blanket ggplot — gg_blanket","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins %>% tidyr::drop_na(sex) %>% mutate(across(sex, \\(x) stringr::str_to_sentence(x))) %>% gg_blanket( geom = \"violin\", stat = \"ydensity\", position = \"dodge\", x = sex, y = body_mass_g, col = sex, facet = species, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":null,"dir":"Reference","previous_headings":"","what":"Boxplot ggplot — gg_boxplot","title":"Boxplot ggplot — gg_boxplot","text":"Create boxplot ggplot wrapper around ggplot2::ggplot() + geom_boxplot().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Boxplot ggplot — gg_boxplot","text":"","code":"gg_boxplot( data = NULL, ..., stat = \"boxplot\", position = \"dodge2\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Boxplot ggplot — gg_boxplot","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Boxplot ggplot — gg_boxplot","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_boxplot.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Boxplot ggplot — gg_boxplot","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_boxplot( x = flipper_length_mm, y = sex, col = species, mode = light_mode_b(), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":null,"dir":"Reference","previous_headings":"","what":"Col ggplot — gg_col","title":"Col ggplot — gg_col","text":"Create col ggplot wrapper around ggplot2::ggplot() + geom_col().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Col ggplot — gg_col","text":"","code":"gg_col( data = NULL, ..., stat = \"identity\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Col ggplot — gg_col","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Col ggplot — gg_col","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_col.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Col ggplot — gg_col","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> group_by(sex, species) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> gg_col( x = flipper_length_mm, y = species, col = sex, position = position_dodge(preserve = \"single\"), width = 0.75, ) #> `summarise()` has grouped output by 'sex'. You can override using the `.groups` #> argument."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":null,"dir":"Reference","previous_headings":"","what":"Contour ggplot — gg_contour","title":"Contour ggplot — gg_contour","text":"Create contour ggplot wrapper around ggplot2::ggplot() + geom_contour().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Contour ggplot — gg_contour","text":"","code":"gg_contour( data = NULL, ..., stat = \"contour\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Contour ggplot — gg_contour","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Contour ggplot — gg_contour","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Contour ggplot — gg_contour","text":"","code":"library(ggplot2) library(dplyr) set_blanket() ggplot2::faithfuld |> gg_contour( x = waiting, y = eruptions, z = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":null,"dir":"Reference","previous_headings":"","what":"Contour_filled ggplot — gg_contour_filled","title":"Contour_filled ggplot — gg_contour_filled","text":"Create contour_filled ggplot wrapper around ggplot2::ggplot() + geom_contour_filled().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Contour_filled ggplot — gg_contour_filled","text":"","code":"gg_contour_filled( data = NULL, ..., stat = \"contour_filled\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Contour_filled ggplot — gg_contour_filled","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Contour_filled ggplot — gg_contour_filled","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_contour_filled.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Contour_filled ggplot — gg_contour_filled","text":"","code":"library(ggplot2) library(dplyr) set_blanket() faithfuld |> gg_contour_filled( x = waiting, y = eruptions, z = density, bins = 8, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":null,"dir":"Reference","previous_headings":"","what":"Crossbar ggplot — gg_crossbar","title":"Crossbar ggplot — gg_crossbar","text":"Create crossbar ggplot wrapper around ggplot2::ggplot() + geom_crossbar().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Crossbar ggplot — gg_crossbar","text":"","code":"gg_crossbar( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Crossbar ggplot — gg_crossbar","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Crossbar ggplot — gg_crossbar","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_crossbar.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Crossbar ggplot — gg_crossbar","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_crossbar( x = trt, y = resp, ymin = lower, ymax = upper, col = group, width = 0.5, x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":null,"dir":"Reference","previous_headings":"","what":"Density ggplot — gg_density","title":"Density ggplot — gg_density","text":"Create density ggplot wrapper around ggplot2::ggplot() + geom_density().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density ggplot — gg_density","text":"","code":"gg_density( data = NULL, ..., stat = \"density\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density ggplot — gg_density","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density ggplot — gg_density","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density ggplot — gg_density","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> tidyr::drop_na(sex) |> gg_density( x = flipper_length_mm, col = species, mode = light_mode_t(), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":null,"dir":"Reference","previous_headings":"","what":"Density_2d ggplot — gg_density_2d","title":"Density_2d ggplot — gg_density_2d","text":"Create density_2d ggplot wrapper around ggplot2::ggplot() + geom_density_2d().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density_2d ggplot — gg_density_2d","text":"","code":"gg_density_2d( data = NULL, ..., stat = \"density_2d\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density_2d ggplot — gg_density_2d","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density_2d ggplot — gg_density_2d","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density_2d ggplot — gg_density_2d","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() faithful |> gg_density_2d( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":null,"dir":"Reference","previous_headings":"","what":"Density_2d_filled ggplot — gg_density_2d_filled","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"Create density_2d_filled ggplot wrapper around ggplot2::ggplot() + geom_density_2d_filled().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"","code":"gg_density_2d_filled( data = NULL, ..., stat = \"density_2d_filled\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_density_2d_filled.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Density_2d_filled ggplot — gg_density_2d_filled","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() faithful |> gg_density_2d_filled( x = waiting, y = eruptions, bins = 8, contour = TRUE, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":null,"dir":"Reference","previous_headings":"","what":"Errorbar ggplot — gg_errorbar","title":"Errorbar ggplot — gg_errorbar","text":"Create errorbar ggplot wrapper around ggplot2::ggplot() + geom_errorbar().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Errorbar ggplot — gg_errorbar","text":"","code":"gg_errorbar( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Errorbar ggplot — gg_errorbar","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Errorbar ggplot — gg_errorbar","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_errorbar.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Errorbar ggplot — gg_errorbar","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_errorbar( x = trt, ymin = lower, ymax = upper, col = group, width = 0.1, x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":null,"dir":"Reference","previous_headings":"","what":"Freqpoly ggplot — gg_freqpoly","title":"Freqpoly ggplot — gg_freqpoly","text":"Create freqpoly ggplot wrapper around ggplot2::ggplot() + geom_freqpoly().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Freqpoly ggplot — gg_freqpoly","text":"","code":"gg_freqpoly( data = NULL, ..., stat = \"bin\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Freqpoly ggplot — gg_freqpoly","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Freqpoly ggplot — gg_freqpoly","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_freqpoly.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Freqpoly ggplot — gg_freqpoly","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_freqpoly( x = flipper_length_mm, col = sex, col_label = \"\", mode = light_mode_t(), ) #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_bin()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":null,"dir":"Reference","previous_headings":"","what":"Function ggplot — gg_function","title":"Function ggplot — gg_function","text":"Create function ggplot wrapper around ggplot2::ggplot() + geom_function().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Function ggplot — gg_function","text":"","code":"gg_function( data = NULL, ..., stat = \"function\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Function ggplot — gg_function","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Function ggplot — gg_function","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_function.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Function ggplot — gg_function","text":"","code":"library(ggplot2) library(dplyr) set_blanket() gg_function( fun = \\(x) dnorm(x, mean = 0, sd = 5), x_expand_limits = qnorm(p = c(0.005, 0.995), mean = 0, sd = 5), y_expand_limits = 0, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":null,"dir":"Reference","previous_headings":"","what":"Hex ggplot — gg_hex","title":"Hex ggplot — gg_hex","text":"Create hex ggplot wrapper around ggplot2::ggplot() + geom_hex().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Hex ggplot — gg_hex","text":"","code":"gg_hex( data = NULL, ..., stat = \"binhex\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Hex ggplot — gg_hex","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Hex ggplot — gg_hex","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_hex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Hex ggplot — gg_hex","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() diamonds |> gg_hex( x = carat, y = price, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":null,"dir":"Reference","previous_headings":"","what":"Histogram ggplot — gg_histogram","title":"Histogram ggplot — gg_histogram","text":"Create histogram ggplot wrapper around ggplot2::ggplot() + geom_histogram().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Histogram ggplot — gg_histogram","text":"","code":"gg_histogram( data = NULL, ..., stat = \"bin\", position = \"stack\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Histogram ggplot — gg_histogram","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Histogram ggplot — gg_histogram","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_histogram.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Histogram ggplot — gg_histogram","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_histogram( x = flipper_length_mm, col = sex, facet = species, bins = 50, mode = light_mode_b(), ) #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_bin()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":null,"dir":"Reference","previous_headings":"","what":"Jitter ggplot — gg_jitter","title":"Jitter ggplot — gg_jitter","text":"Create jitter ggplot wrapper around ggplot2::ggplot() + geom_jitter().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Jitter ggplot — gg_jitter","text":"","code":"gg_jitter( data = NULL, ..., stat = \"identity\", position = \"jitter\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Jitter ggplot — gg_jitter","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Jitter ggplot — gg_jitter","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_jitter.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Jitter ggplot — gg_jitter","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() set.seed(123) penguins |> gg_jitter( x = species, y = body_mass_g, col = flipper_length_mm, position = position_jitter(height = 0), y_expand_limits = 0, col_steps = TRUE, ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":null,"dir":"Reference","previous_headings":"","what":"Label ggplot — gg_label","title":"Label ggplot — gg_label","text":"Create label ggplot wrapper around ggplot2::ggplot() + geom_label().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Label ggplot — gg_label","text":"","code":"gg_label( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Label ggplot — gg_label","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Label ggplot — gg_label","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_label.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Label ggplot — gg_label","text":"","code":"library(ggplot2) library(dplyr) set_blanket() bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg) ) |> tibble::rownames_to_column(\"model\") |> gg_label( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":null,"dir":"Reference","previous_headings":"","what":"Line ggplot — gg_line","title":"Line ggplot — gg_line","text":"Create line ggplot wrapper around ggplot2::ggplot() + geom_line().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Line ggplot — gg_line","text":"","code":"gg_line( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Line ggplot — gg_line","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Line ggplot — gg_line","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_line.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Line ggplot — gg_line","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> gg_line( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":null,"dir":"Reference","previous_headings":"","what":"Linerange ggplot — gg_linerange","title":"Linerange ggplot — gg_linerange","text":"Create linerange ggplot wrapper around ggplot2::ggplot() + geom_linerange().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Linerange ggplot — gg_linerange","text":"","code":"gg_linerange( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Linerange ggplot — gg_linerange","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Linerange ggplot — gg_linerange","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_linerange.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Linerange ggplot — gg_linerange","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_linerange( x = trt, ymin = lower, ymax = upper, col = group, position = position_dodge(width = 0.2), x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":null,"dir":"Reference","previous_headings":"","what":"Path ggplot — gg_path","title":"Path ggplot — gg_path","text":"Create path ggplot wrapper around ggplot2::ggplot() + geom_path().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Path ggplot — gg_path","text":"","code":"gg_path( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Path ggplot — gg_path","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Path ggplot — gg_path","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_path.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Path ggplot — gg_path","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> mutate(unemploy_rate = unemploy / pop) |> gg_path( x = unemploy_rate, y = psavert, x_label = \"Unemployment rate\", y_expand_limits = 0, y_label = \"Personal savings rate\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":null,"dir":"Reference","previous_headings":"","what":"Point ggplot — gg_point","title":"Point ggplot — gg_point","text":"Create point ggplot wrapper around ggplot2::ggplot() + geom_point().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Point ggplot — gg_point","text":"","code":"gg_point( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Point ggplot — gg_point","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Point ggplot — gg_point","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_point.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Point ggplot — gg_point","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_point( x = flipper_length_mm, y = body_mass_g, col = sex, ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":null,"dir":"Reference","previous_headings":"","what":"Pointrange ggplot — gg_pointrange","title":"Pointrange ggplot — gg_pointrange","text":"Create pointrange ggplot wrapper around ggplot2::ggplot() + geom_pointrange().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pointrange ggplot — gg_pointrange","text":"","code":"gg_pointrange( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pointrange ggplot — gg_pointrange","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pointrange ggplot — gg_pointrange","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_pointrange.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Pointrange ggplot — gg_pointrange","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( trt = factor(c(1, 1, 2, 2)), resp = c(1, 5, 3, 4), group = factor(c(1, 2, 1, 2)), upper = c(1.1, 5.3, 3.3, 4.2), lower = c(0.8, 4.6, 2.4, 3.6) ) |> gg_pointrange( x = trt, y = resp, col = group, ymin = lower, ymax = upper, position = position_dodge(width = 0.2), x_label = \"Treatment\", y_label = \"Response\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":null,"dir":"Reference","previous_headings":"","what":"Polygon ggplot — gg_polygon","title":"Polygon ggplot — gg_polygon","text":"Create polygon ggplot wrapper around ggplot2::ggplot() + geom_polygon().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Polygon ggplot — gg_polygon","text":"","code":"gg_polygon( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Polygon ggplot — gg_polygon","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Polygon ggplot — gg_polygon","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_polygon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Polygon ggplot — gg_polygon","text":"","code":"library(ggplot2) library(dplyr) set_blanket() ids <- factor(c(\"1.1\", \"2.1\", \"1.2\", \"2.2\", \"1.3\", \"2.3\")) values <- data.frame( id = ids, value = c(3, 3.1, 3.1, 3.2, 3.15, 3.5) ) positions <- data.frame( id = rep(ids, each = 4), x = c( 2, 1, 1.1, 2.2, 1, 0, 0.3, 1.1, 2.2, 1.1, 1.2, 2.5, 1.1, 0.3, 0.5, 1.2, 2.5, 1.2, 1.3, 2.7, 1.2, 0.5, 0.6, 1.3 ), y = c( -0.5, 0, 1, 0.5, 0, 0.5, 1.5, 1, 0.5, 1, 2.1, 1.7, 1, 1.5, 2.2, 2.1, 1.7, 2.1, 3.2, 2.8, 2.1, 2.2, 3.3, 3.2 ) ) datapoly <- merge(values, positions, by = c(\"id\")) datapoly |> gg_polygon( x = x, y = y, col = value, group = id, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":null,"dir":"Reference","previous_headings":"","what":"Qq ggplot — gg_qq","title":"Qq ggplot — gg_qq","text":"Create qq ggplot wrapper around ggplot2::ggplot() + geom_qq().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Qq ggplot — gg_qq","text":"","code":"gg_qq( data = NULL, ..., stat = \"qq\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Qq ggplot — gg_qq","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Qq ggplot — gg_qq","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_qq.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Qq ggplot — gg_qq","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> gg_qq( sample = body_mass_g, facet = species, coord = coord_cartesian(clip = \"on\"), ) + geom_qq_line( colour = blue, ) #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_qq()`). #> Warning: Removed 2 rows containing non-finite outside the scale range #> (`stat_qq_line()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":null,"dir":"Reference","previous_headings":"","what":"Quantile ggplot — gg_quantile","title":"Quantile ggplot — gg_quantile","text":"Create quantile ggplot wrapper around ggplot2::ggplot() + geom_quantile().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Quantile ggplot — gg_quantile","text":"","code":"gg_quantile( data = NULL, ..., stat = \"quantile\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Quantile ggplot — gg_quantile","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Quantile ggplot — gg_quantile","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_quantile.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Quantile ggplot — gg_quantile","text":"","code":"if (requireNamespace(\"quantreg\", quietly = TRUE)) { library(ggplot2) library(palmerpenguins) set_blanket() penguins |> gg_quantile( x = flipper_length_mm, y = body_mass_g, ) } #> Warning: Removed 2 rows containing non-finite outside the scale range #> (`stat_quantile()`). #> Smoothing formula not specified. Using: y ~ x"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":null,"dir":"Reference","previous_headings":"","what":"Raster ggplot — gg_raster","title":"Raster ggplot — gg_raster","text":"Create raster ggplot wrapper around ggplot2::ggplot() + geom_raster().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Raster ggplot — gg_raster","text":"","code":"gg_raster( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Raster ggplot — gg_raster","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Raster ggplot — gg_raster","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_raster.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Raster ggplot — gg_raster","text":"","code":"library(ggplot2) library(dplyr) set_blanket() faithfuld |> gg_raster( x = waiting, y = eruptions, col = density, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":null,"dir":"Reference","previous_headings":"","what":"Rect ggplot — gg_rect","title":"Rect ggplot — gg_rect","text":"Create rect ggplot wrapper around ggplot2::ggplot() + geom_rect().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rect ggplot — gg_rect","text":"","code":"gg_rect( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rect ggplot — gg_rect","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Rect ggplot — gg_rect","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rect.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rect ggplot — gg_rect","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame( x = rep(c(2, 5, 7, 9, 12), 2), y = rep(c(1, 2), each = 5), z = factor(c(rep(1:4, each = 2), 5, NA)), w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2) ) |> mutate( xmin = x - w / 2, xmax = x + w / 2, ymin = y, ymax = y + 1 ) |> gg_rect( xmin = xmin, xmax = xmax, ymin = ymin, ymax = ymax, col = z, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":null,"dir":"Reference","previous_headings":"","what":"Ribbon ggplot — gg_ribbon","title":"Ribbon ggplot — gg_ribbon","text":"Create ribbon ggplot wrapper around ggplot2::ggplot() + geom_ribbon()","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Ribbon ggplot — gg_ribbon","text":"","code":"gg_ribbon( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Ribbon ggplot — gg_ribbon","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Ribbon ggplot — gg_ribbon","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_ribbon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Ribbon ggplot — gg_ribbon","text":"","code":"library(ggplot2) library(dplyr) set_blanket() data.frame(year = 1875:1972, level = as.vector(LakeHuron)) |> mutate(level_min = level - 1, level_max = level + 1) |> gg_ribbon( x = year, ymin = level_min, ymax = level_max, colour = NA, x_labels = \\(x) x, y_label = \"Level\", ) + geom_line(mapping = aes(y = level))"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":null,"dir":"Reference","previous_headings":"","what":"Rug ggplot — gg_rug","title":"Rug ggplot — gg_rug","text":"Create rug ggplot wrapper around ggplot2::ggplot() + geom_rug().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rug ggplot — gg_rug","text":"","code":"gg_rug( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rug ggplot — gg_rug","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Rug ggplot — gg_rug","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_rug.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rug ggplot — gg_rug","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_rug( x = flipper_length_mm, y = body_mass_g, col = sex, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":null,"dir":"Reference","previous_headings":"","what":"Segment ggplot — gg_segment","title":"Segment ggplot — gg_segment","text":"Create segment ggplot wrapper around ggplot2::ggplot() + geom_segment().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Segment ggplot — gg_segment","text":"","code":"gg_segment( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Segment ggplot — gg_segment","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Segment ggplot — gg_segment","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_segment.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Segment ggplot — gg_segment","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() data.frame(x1 = 2.62, x2 = 3.57, y1 = 21.0, y2 = 15.0) |> gg_segment( x = x1, xend = x2, y = y1, yend = y2, )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":null,"dir":"Reference","previous_headings":"","what":"Sf ggplot — gg_sf","title":"Sf ggplot — gg_sf","text":"Create blank ggplot wrapper around ggplot2::ggplot() + geom_sf().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Sf ggplot — gg_sf","text":"","code":"gg_sf( data = NULL, ..., stat = \"sf\", position = \"identity\", coord = ggplot2::coord_sf(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Sf ggplot — gg_sf","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Sf ggplot — gg_sf","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_sf.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Sf ggplot — gg_sf","text":"","code":"library(ggplot2) library(dplyr) set_blanket() if (requireNamespace(\"sf\", quietly = TRUE)) { sf::st_read(system.file(\"shape/nc.shp\", package = \"sf\")) |> gg_sf( col = AREA, ) } #> Reading layer `nc' from data source #> `/home/runner/work/_temp/Library/sf/shape/nc.shp' using driver `ESRI Shapefile' #> Simple feature collection with 100 features and 14 fields #> Geometry type: MULTIPOLYGON #> Dimension: XY #> Bounding box: xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965 #> Geodetic CRS: NAD27"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":null,"dir":"Reference","previous_headings":"","what":"Smooth ggplot — gg_smooth","title":"Smooth ggplot — gg_smooth","text":"Create smooth ggplot wrapper around ggplot2::ggplot() + geom_smooth().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Smooth ggplot — gg_smooth","text":"","code":"gg_smooth( data = NULL, ..., stat = \"smooth\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Smooth ggplot — gg_smooth","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Smooth ggplot — gg_smooth","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_smooth.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Smooth ggplot — gg_smooth","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> tidyr::drop_na(sex) |> gg_smooth( x = flipper_length_mm, y = body_mass_g, col = sex, se = TRUE, ) #> `geom_smooth()` using method = 'loess' and formula = 'y ~ x'"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":null,"dir":"Reference","previous_headings":"","what":"Step ggplot — gg_step","title":"Step ggplot — gg_step","text":"Create step plot wrapper around ggplot2::ggplot() + geom_step().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Step ggplot — gg_step","text":"","code":"gg_step( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Step ggplot — gg_step","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Step ggplot — gg_step","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_step.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Step ggplot — gg_step","text":"","code":"library(ggplot2) library(dplyr) set_blanket() economics |> filter(date > lubridate::ymd(\"2010-01-01\")) |> gg_step( x = date, y = unemploy, y_expand_limits = 0, y_label = \"Unemployment\", )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":null,"dir":"Reference","previous_headings":"","what":"Text ggplot — gg_text","title":"Text ggplot — gg_text","text":"Create text plot wrapper around ggplot2::ggplot() + geom_text().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Text ggplot — gg_text","text":"","code":"gg_text( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Text ggplot — gg_text","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Text ggplot — gg_text","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_text.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Text ggplot — gg_text","text":"","code":"library(ggplot2) library(dplyr) set_blanket() bind_rows( mtcars |> slice_min(order_by = mpg), mtcars |> slice_max(order_by = mpg) ) |> tibble::rownames_to_column(\"model\") |> gg_text( x = model, y = mpg, col = mpg, label = model, y_expand_limits = 0, y_label = \"Miles per gallon\", col_palette = c(orange, \"white\", teal), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":null,"dir":"Reference","previous_headings":"","what":"Tile ggplot — gg_tile","title":"Tile ggplot — gg_tile","text":"Create tile plot wrapper around ggplot2::ggplot() + geom_tile().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Tile ggplot — gg_tile","text":"","code":"gg_tile( data = NULL, ..., stat = \"identity\", position = \"identity\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Tile ggplot — gg_tile","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Tile ggplot — gg_tile","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_tile.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tile ggplot — gg_tile","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> group_by(species, sex) |> summarise(across(flipper_length_mm, \\(x) mean(x, na.rm = TRUE))) |> gg_tile( x = sex, y = species, col = flipper_length_mm, ) #> `summarise()` has grouped output by 'species'. You can override using the #> `.groups` argument."},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":null,"dir":"Reference","previous_headings":"","what":"Violin ggplot — gg_violin","title":"Violin ggplot — gg_violin","text":"Create violin plot wrapper around ggplot2::ggplot() + geom_violin().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Violin ggplot — gg_violin","text":"","code":"gg_violin( data = NULL, ..., stat = \"ydensity\", position = \"dodge\", coord = ggplot2::coord_cartesian(clip = \"off\"), mode = NULL, mode_orientation = NULL, x = NULL, xmin = NULL, xmax = NULL, xend = NULL, y = NULL, ymin = NULL, ymax = NULL, yend = NULL, z = NULL, col = NULL, facet = NULL, facet2 = NULL, group = NULL, subgroup = NULL, label = NULL, text = NULL, sample = NULL, mapping = NULL, x_breaks = NULL, x_breaks_n = NULL, x_expand = NULL, x_expand_limits = NULL, x_label = NULL, x_labels = NULL, x_position = \"bottom\", x_sec_axis = ggplot2::waiver(), x_symmetric = NULL, x_transform = NULL, y_breaks = NULL, y_breaks_n = NULL, y_expand = NULL, y_expand_limits = NULL, y_label = NULL, y_labels = NULL, y_position = \"left\", y_sec_axis = ggplot2::waiver(), y_symmetric = NULL, y_transform = NULL, col_breaks = NULL, col_breaks_n = 5, col_drop = FALSE, col_expand_limits = NULL, col_label = NULL, col_labels = NULL, col_legend_ncol = NULL, col_legend_nrow = NULL, col_legend_rev = FALSE, col_palette = NULL, col_palette_na = NULL, col_rescale = scales::rescale(), col_steps = FALSE, col_transform = NULL, facet_axes = NULL, facet_axis_labels = \"margins\", facet_drop = FALSE, facet_labels = NULL, facet_layout = NULL, facet_ncol = NULL, facet_nrow = NULL, facet_scales = \"fixed\", facet_space = \"fixed\", title = NULL, subtitle = NULL, caption = NULL, label_to_case = snakecase::to_sentence_case )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Violin ggplot — gg_violin","text":"data data frame tibble. ... arguments passed within params list layer(). stat statistical transformation use data. snakecase character string ggproto Stat subclass object minus Stat prefix (e.g. \"identity\"). position position adjustment. snakecase character string ggproto Position subclass object minus Position prefix (e.g. \"identity\"), position_*() function outputs ggproto Position subclass object (e.g. ggplot2::position_identity()). coord coordinate system. coord_*() function outputs constructed ggproto Coord subclass object (e.g. ggplot2::coord_cartesian()). mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates side-effects removing relevant axis line/ticks gridlines per mode_orientation. mode_orientation orientation plot, affects theme components removed mode. Either \"x\" \"y\". x, xmin, xmax, xend, y, ymin, ymax, yend, z, col, facet, facet2, group, subgroup, label, text, sample unquoted aesthetic variable. mapping set additional aesthetic mappings ggplot2::aes(). Intended primarily non-supported aesthetics (e.g. shape, linetype, linewidth, size), can also used delayed evaluation etc. x_breaks, y_breaks, col_breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. x_breaks_n, y_breaks_n, col_breaks_n number desired breaks *_breaks = NULL. x_expand, y_expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). x_expand_limits, y_expand_limits, col_expand_limits continuous variable, values limits encompass (e.g. 0). discrete scale, manipulate data instead forcats::fct_expand. x_label, y_label, col_label Label axis legend title. Use + ggplot2::labs(... = NULL) title. x_labels, y_labels, col_labels, facet_labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. (Note must named facet_labels). x_position, y_position position axis (.e. \"left\", \"right\", \"bottom\" \"top\").using y_position = \"top\" *_mode_* theme, add caption = \"\" caption = \"\\n\". x_sec_axis, y_sec_axis secondary axis ggplot2::dup_axis() ggplot2::sec_axis(). x_symmetric, y_symmetric TRUE FALSE whether symmetric scale. x_transform, y_transform, col_transform continuous scale, transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\"). col_drop, facet_drop discrete variable, FALSE TRUE whether drop unused levels. col_legend_ncol, col_legend_nrow number columns rows legend guide. col_legend_rev TRUE FALSE whether reverse elements legend guide. Defaults FALSE. col_palette character vector hex codes (names) scales::pal_*() function. col_palette_na hex code (name) colour NA values. col_rescale continuous variable, scales::rescale() function. col_steps continuous variable, TRUE FALSE whether colour steps. Defaults FALSE. facet_axes Whether add interior axes ticks \"margins\", \"\", \"all_x\", \"all_y\". Sometimes + *_mode_*() may needed. facet_axis_labels Whether add interior axis labels \"margins\", \"\", \"all_x\", \"all_y\". facet_layout Whether layout \"wrap\" \"grid\". NULL single facet (facet2) argument provided, defaults \"wrap\". NULL facet facet2 arguments provided, defaults \"grid\". facet_ncol, facet_nrow number columns rows facet panels. applies facet layout \"wrap\". facet_scales Whether facet scales \"fixed\" across facets, \"free\" directions, free just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". facet_space facet layout \"grid\" facet scales \"fixed\", whether facet space \"fixed\" across facets, \"free\" proportional directions, free proportional just one direction (.e. \"free_x\" \"free_y\"). Defaults \"fixed\". title Title string. subtitle Subtitle string. caption Caption title string. label_to_case function format default x_label, y_label col_label unlabelled variables. Defaults snakecase::to_sentence_case.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Violin ggplot — gg_violin","text":"ggplot object.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/gg_violin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Violin ggplot — gg_violin","text":"","code":"library(ggplot2) library(dplyr) library(palmerpenguins) set_blanket() penguins |> tidyr::drop_na(sex) |> mutate(across(sex, \\(x) stringr::str_to_sentence(x))) |> gg_violin( x = sex, y = body_mass_g, col = sex, facet = species, mode = light_mode_b(), )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/ggblanket-package.html","id":null,"dir":"Reference","previous_headings":"","what":"ggblanket: Simplify 'ggplot2' Visualisation — ggblanket-package","title":"ggblanket: Simplify 'ggplot2' Visualisation — ggblanket-package","text":"Simplify 'ggplot2' visualisation 'ggblanket' wrapper functions.","code":""},{"path":[]},{"path":"https://davidhodge931.github.io/ggblanket/reference/ggblanket-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"ggblanket: Simplify 'ggplot2' Visualisation — ggblanket-package","text":"Maintainer: David Hodge davidhodge931@gmail.com (ORCID) [copyright holder]","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":null,"dir":"Reference","previous_headings":"","what":"A grey colour — grey","title":"A grey colour — grey","text":"grey colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A grey colour — grey","text":"","code":"grey"},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"A grey colour — grey","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/grey.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"A grey colour — grey","text":"","code":"scales::show_col(grey)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":null,"dir":"Reference","previous_headings":"","what":"The jumble palette — jumble","title":"The jumble palette — jumble","text":"discrete palette relatively colour-blind safe.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The jumble palette — jumble","text":"","code":"jumble teal orange navy red pink purple"},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The jumble palette — jumble","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/jumble.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The jumble palette — jumble","text":"","code":"colorspace::swatchplot(c(jumble, grey), cvd = TRUE)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":null,"dir":"Reference","previous_headings":"","what":"Light mode theme family — light_mode_r","title":"Light mode theme family — light_mode_r","text":"dark mode family functions: light_mode_r() legend right light_mode_t() legend top light_mode_b() legend bottom","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Light mode theme family — light_mode_r","text":"","code":"light_mode_r( ..., base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) light_mode_t( ..., base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) ) light_mode_b( ..., base_size = 11, base_family = \"\", base_colour = \"#121B24FF\", axis_line_colour = \"#121B24FF\", axis_line_linewidth = 0.33, axis_ticks_colour = axis_line_colour, axis_ticks_linewidth = axis_line_linewidth, axis_ticks_length_x = grid::unit(base_size/3, \"pt\"), axis_ticks_length_y = grid::unit(base_size/4, \"pt\"), panel_grid_colour = \"#F6F8FAFF\", panel_grid_linewidth = 1.33, panel_background_fill = \"#FFFFFFFF\", plot_background_fill = \"#FFFFFFFF\", legend_axis_line_colour = plot_background_fill, legend_axis_line_linewidth = 0.33, legend_background_fill = plot_background_fill, legend_key_fill = plot_background_fill, legend_ticks_colour = legend_axis_line_colour, legend_ticks_linewidth = legend_axis_line_linewidth, legend_ticks_length = ggplot2::rel(c(0.175, 0)) )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Light mode theme family — light_mode_r","text":"... Provided force user argument naming etc. base_size base size text theme element. Defaults 11. base_family base family text theme element. Defaults \"\". base_colour base colour text theme element. axis_line_colour colour axis.line theme element. axis_line_linewidth linewidth axis.line theme element. axis_ticks_colour colour axis.ticks theme element. axis_ticks_linewidth linewidth axis.ticks theme element. axis_ticks_length_x length axis.ticks.length.x theme element. axis_ticks_length_y length axis.ticks.length.y theme element. panel_grid_colour colour panel.grid theme element. panel_grid_linewidth linewidth panel.grid theme element. panel_background_fill fill (colour) panel.background theme element. plot_background_fill fill (colour) plot.background theme element. legend_axis_line_colour colour legend.axis.line theme element. legend_axis_line_linewidth linewidth legend.axis.line theme element. legend_background_fill fill (colour) legend.background theme element. legend_key_fill fill (colour) legend.key theme element. legend_ticks_colour colour legend.ticks theme element. legend_ticks_linewidth linewidth legend.ticks theme element. legend_ticks_length legend.ticks.length theme element.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Light mode theme family — light_mode_r","text":"ggplot theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/light_mode_r.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Light mode theme family — light_mode_r","text":"","code":"library(palmerpenguins) library(ggplot2) set_blanket() penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = light_mode_r() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = light_mode_t() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, col = species, mode = light_mode_b() ) #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":null,"dir":"Reference","previous_headings":"","what":"Mode colour and linewidth defaults — lightness","title":"Mode colour and linewidth defaults — lightness","text":"lightness darkness vectors 3 colours used *_mode_* themes text, axis.line (axis.ticks), panel.grid, panel.background plot.background etc. linewidthness vector 2 integers used *_mode_* themes linewidth axis.line (axis.ticks legend.ticks) panel.grid theme elements.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mode colour and linewidth defaults — lightness","text":"","code":"lightness darkness linewidthness"},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mode colour and linewidth defaults — lightness","text":"character vector.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/lightness.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Mode colour and linewidth defaults — lightness","text":"","code":"scales::show_col(c(lightness, darkness), ncol = 3)"},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":null,"dir":"Reference","previous_headings":"","what":"Orientate a mode to ","title":"Orientate a mode to ","text":"Theme components add mode used used outside gg_* context.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Orientate a mode to ","text":"","code":"mode_orientation_to_x()"},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Orientate a mode to ","text":"ggplot2 theme components.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_x.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Orientate a mode to ","text":"","code":"library(ggplot2) library(palmerpenguins) penguins |> ggplot() + geom_point(aes(x = flipper_length_mm, y = body_mass_g)) + light_mode_r() + mode_orientation_to_x() #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":null,"dir":"Reference","previous_headings":"","what":"Orientate a mode to ","title":"Orientate a mode to ","text":"Theme components add mode used used outside gg_* context.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Orientate a mode to ","text":"","code":"mode_orientation_to_y()"},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Orientate a mode to ","text":"ggplot2 theme components.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/mode_orientation_to_y.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Orientate a mode to ","text":"","code":"library(ggplot2) library(palmerpenguins) penguins |> ggplot() + geom_bar(aes(y = island)) + light_mode_r() + mode_orientation_to_y()"},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":null,"dir":"Reference","previous_headings":"","what":"Pipe operator — %>%","title":"Pipe operator — %>%","text":"See magrittr::%>% details.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Pipe operator — %>%","text":"","code":"lhs %>% rhs"},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Pipe operator — %>%","text":"lhs value magrittr placeholder. rhs function call using magrittr semantics.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/pipe.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pipe operator — %>%","text":"result calling rhs(lhs).","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":null,"dir":"Reference","previous_headings":"","what":"Symmetric x continuous scale — scale_x_symmetric","title":"Symmetric x continuous scale — scale_x_symmetric","text":"Symmetric x continuous scale","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Symmetric x continuous scale — scale_x_symmetric","text":"","code":"scale_x_symmetric( ..., data = NULL, x = NULL, symmetric = TRUE, breaks = NULL, breaks_n = 6, expand = NULL, expand_limits = NULL, labels = NULL, position = \"bottom\", sec_axis = ggplot2::waiver(), transform = \"identity\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Symmetric x continuous scale — scale_x_symmetric","text":"... Provided force user argument naming etc. data data frame tibble. x unquoted variable. symmetric TRUE FALSE whether symmetric scale. breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. breaks_n breaks = NULL, desired number breaks. expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). expand_limits values limits encompass (e.g. 0). labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. position position axis (.e. \"left\", \"right\", \"bottom\" \"top\"). sec_axis secondary axis created ggplot2::sec_axis() ggplot2::dup_axis(). transform transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\").","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_x_symmetric.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Symmetric x continuous scale — scale_x_symmetric","text":"ggplot2 continuous x scale.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":null,"dir":"Reference","previous_headings":"","what":"Symmetric y continuous scale — scale_y_symmetric","title":"Symmetric y continuous scale — scale_y_symmetric","text":"Symmetric y continuous scale","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Symmetric y continuous scale — scale_y_symmetric","text":"","code":"scale_y_symmetric( ..., data = NULL, y = NULL, symmetric = TRUE, breaks = NULL, breaks_n = 6, expand = NULL, expand_limits = NULL, labels = NULL, position = \"left\", sec_axis = ggplot2::waiver(), transform = \"identity\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Symmetric y continuous scale — scale_y_symmetric","text":"... Provided force user argument naming etc. data data frame tibble. y unquoted variable. symmetric TRUE FALSE whether symmetric scale. breaks scales::breaks_* function (e.g. scales::breaks_*()), vector breaks. breaks_n breaks = NULL, desired number breaks. expand Padding limits ggplot2::expansion() function, vector length 2 (e.g. c(0, 0)). expand_limits values limits encompass (e.g. 0). labels function takes breaks inputs (e.g. \\(x) stringr::str_to_sentence(x) scales::label_*()), vector labels. position position axis (.e. \"left\", \"right\", \"bottom\" \"top\"). sec_axis secondary axis created ggplot2::sec_axis() ggplot2::dup_axis(). transform transformation object (e.g. scales::transform_log10()) character string minus transform_ prefix (e.g. \"log10\").","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/scale_y_symmetric.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Symmetric y continuous scale — scale_y_symmetric","text":"ggplot2 continuous y scale.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a style — set_blanket","title":"Set a style — set_blanket","text":"Set style setting : mode geom defaults, including annotation col_palettes discrete, continuous ordinal scales. Alternatively, use weave_* functions apply subset .","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a style — set_blanket","text":"","code":"set_blanket( ..., mode = light_mode_r(), colour = \"#357BA2FF\", annotation_colour = \"#121B24FF\", annotation_linewidth = 0.33, annotation_family = \"\", annotation_size = 3.88, col_palette_d = jumble, col_palette_na_d = \"#CDC5BFFF\", col_palette_c = viridisLite::mako(n = 9, direction = -1), col_palette_na_c = \"#988F88FF\", col_palette_o = scales::pal_viridis(option = \"G\", direction = -1), col_palette_na_o = \"#988F88FF\", theme = light_mode_r() + mode_orientation_to_x() )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a style — set_blanket","text":"... Provided force user argument naming etc. mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates gg_* side-effects removing relevant axis line/ticks gridlines per mode_orientation. colour hex colour (fill) geoms. Fill inherits colour. Defaults blue (.e. #357BA2FF). annotation_colour hex colour (fill) *_hline/*_vline/*_abline *_curve. Defaults \"#121b24\" (.e. lightness[1]). annotation_linewidth linewidth *_hline/*_vline/*_abline *_curve. Defaults 0.33. annotation_family family *_text *_label. Defaults \"\". annotation_size size *_text *_label. Defaults 3.88. col_palette_d discrete scale, character vector hex codes (names) col_palette. col_palette_na_d discrete scale, hex code name col_palette_na. col_palette_c continuous scale, character vector hex codes (names) col_palette. col_palette_na_c continuous scale, hex code name col_palette_na. col_palette_o ordinal scale, scales::pal_*() function col_palette. col_palette_na_o ordinal scale, hex code name col_palette_na. theme ggplot2 theme gg_* function add without side-effects. Note, mode takes precedence, unless mode = NULL.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Set a style — set_blanket","text":"globally set style.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/set_blanket.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Set a style — set_blanket","text":"","code":"library(ggplot2) library(ggblanket) library(palmerpenguins) set_blanket( mode = dark_mode_r(), colour = orange, annotation_colour = darkness[1], ) penguins |> gg_point( x = flipper_length_mm, y = body_mass_g, x_breaks = scales::breaks_pretty(3), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.25), y = I(0.75), label = \"Here\") #> Warning: Removed 2 rows containing missing values or values outside the scale range #> (`geom_point()`). penguins |> gg_histogram( x = flipper_length_mm, x_breaks = scales::breaks_pretty(3), ) + geom_vline(xintercept = 200) + annotate(\"text\", x = I(0.75), y = I(0.75), label = \"Here\") #> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. #> Warning: Removed 2 rows containing non-finite outside the scale range (`stat_bin()`)."},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_c.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a continuous colour palette — weave_col_palette_c","title":"Set a continuous colour palette — weave_col_palette_c","text":"Set continuous colour palette","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_c.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a continuous colour palette — weave_col_palette_c","text":"","code":"weave_col_palette_c( col_palette_c = viridisLite::mako(n = 9, direction = -1), col_palette_c_na = \"#988F88FF\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_c.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a continuous colour palette — weave_col_palette_c","text":"col_palette_c continuous scale, character vector hex codes (col_palette_c_names) col_palette_c_na continuous scale, hex code (col_palette_c_name) col_palette_col_palette_c_na.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_d.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a discrete colour palette — weave_col_palette_d","title":"Set a discrete colour palette — weave_col_palette_d","text":"Set discrete colour palette","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_d.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a discrete colour palette — weave_col_palette_d","text":"","code":"weave_col_palette_d(col_palette_d = jumble, col_palette_d_na = \"#CDC5BFFF\")"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_d.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a discrete colour palette — weave_col_palette_d","text":"col_palette_d discrete scale, character vector hex codes (col_palette_d_names) col_palette_d. col_palette_d_na discrete scale, hex code (col_palette_d_name) col_palette_d_col_palette_d_na.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_o.html","id":null,"dir":"Reference","previous_headings":"","what":"Set an ordinal colour palette — weave_col_palette_o","title":"Set an ordinal colour palette — weave_col_palette_o","text":"Set ordinal colour palette","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_o.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set an ordinal colour palette — weave_col_palette_o","text":"","code":"weave_col_palette_o( col_palette_o = scales::pal_viridis(option = \"G\", direction = -1), col_palette_o_na = \"#988F88FF\" )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_col_palette_o.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set an ordinal colour palette — weave_col_palette_o","text":"col_palette_o ordicol_palette_o_nal scale, scales::pal_*() function col_palette_o. col_palette_o_na ordicol_palette_o_nal scale, hex code (col_palette_o_name) col_palette_o_col_palette_o_na.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_geom_defaults.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a series of geom defaults — weave_geom_defaults","title":"Set a series of geom defaults — weave_geom_defaults","text":"Update geom defaults.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_geom_defaults.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a series of geom defaults — weave_geom_defaults","text":"","code":"weave_geom_defaults( colour = \"#357BA2FF\", annotation_colour = \"#121B24FF\", annotation_linewidth = 0.33, annotation_family = \"\", annotation_size = 3.88 )"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_geom_defaults.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a series of geom defaults — weave_geom_defaults","text":"colour hex colour (fill) geoms *_hline/*_vline/*_abline *_curve. Fill inherits colour. Defaults blue (.e. #357BA2FF). annotation_colour hex annotation_colour (fill) *_hline/*_vline/*_abline *_curve. Defaults \"#121b24\" (.e. lightness[1]). annotation_linewidth annotation_linewidth *_hline/*_vline/*_abline *_curve. Defaults 0.33. annotation_family annotation_family *_text *_label. Defaults \"\" annotation_size annotation_size *_text *_label. Defaults 3.88.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_mode.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a mode — weave_mode","title":"Set a mode — weave_mode","text":"Set mode mode argument gg_* functions.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_mode.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a mode — weave_mode","text":"","code":"weave_mode(mode = light_mode_r())"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_mode.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a mode — weave_mode","text":"mode ggplot2 theme (e.g. light_mode_t() dark_mode_r()) anticipates gg_* side-effects removing relevant axis line/ticks gridlines per mode_orientation.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_theme.html","id":null,"dir":"Reference","previous_headings":"","what":"Set a theme — weave_theme","title":"Set a theme — weave_theme","text":"Set theme +-ed unmodified gg_* functions. Note, mode takes precedence unless NULL.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_theme.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Set a theme — weave_theme","text":"","code":"weave_theme(theme = light_mode_r() + mode_orientation_to_x())"},{"path":"https://davidhodge931.github.io/ggblanket/reference/weave_theme.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Set a theme — weave_theme","text":"theme ggplot2 theme gg_* function add without side-effects. Note, mode takes precedence, unless mode = NULL.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-9119000","dir":"Changelog","previous_headings":"","what":"ggblanket 9.1.1.9000","title":"ggblanket 9.1.1.9000","text":"Breaking: removed *_limits *_oob arguments. Breaking: removed *_mode_n grey_mode_* functions. Breaking: removed greyness helper. Breaking: removed *_orientation arguments *_mode_* functions. Breaking: set_blanket, renamed annotate_* arguments annotation_*. Added *_symmetric arguments. Added mode_orientation argument. Added *_breaks_n *_sec_axis arguments. Added weave_* setup functions. Added mode_orientation_to_x mode_orientation_to_y functions. set_blanket, changed theme argument default theme_grey().","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-911","dir":"Changelog","previous_headings":"","what":"ggblanket 9.1.1","title":"ggblanket 9.1.1","text":"CRAN release: 2024-06-14 Forced user argument naming set_blanket(), *_mode_*() aes_contrast(). Fixed bug colouring discrete values set col_palette_d. Fixed bug colouring col_palette_d set names data. Removed mode_family argument aes_contrast(). Made *_mode_t() *_mode_b() legend.byrow = TRUE. Made *_mode_*() functions intuitive remove/adjust elements. Changed gg_sf default keeping major gridlines. Updated hex colour strings caps. Fixed code making base plot extra time unnecessarily. Fixed bug *_breaks *_limits working.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-910","dir":"Changelog","previous_headings":"","what":"ggblanket 9.1.0","title":"ggblanket 9.1.0","text":"CRAN release: 2024-05-25 Moved mapping argument within layer. Determine x y classes based axis built plot. Guess orientation based discrete y axis. Added *_orientation arguments orientation guess incorrect. Supported col_palette argument accept vector ordinal variables. Made pattern guide/label equal colour/fill align automatically.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-900","dir":"Changelog","previous_headings":"","what":"ggblanket 9.0.0","title":"ggblanket 9.0.0","text":"CRAN release: 2024-05-15 Supported label-based workflow. Breaking: renamed *_title *_label. Breaking: renamed titles_to_case label_to_case. Breaking: removed weave_* functions. Breaking: removed geom_linewidth geom_size weave_geom_aes set_blanket. Fixed bug grey_mode_*/dark_mode_* missing legend functionality. Improved scales using scales::breaks_extended(). dark_mode_*, fixed incorrect axis_line_colour default. *_mode_*, updated caption colour default. Made guides alpha/shape/size/linewidth/linetype aesthetics equal colour/fill align automatically. Breaking: removed replace_seq. Added col_drop facet_drop arguments. Fixed bug relating gg_bin_2d scales. Updated default NA colour used continuous colour scales #988f88ff\" (.e. colorspace::darken(grey, 0.25)). Supported use scales::pal_*() functions within col_palette argument.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-800","dir":"Changelog","previous_headings":"","what":"ggblanket 8.0.0","title":"ggblanket 8.0.0","text":"CRAN release: 2024-04-29 Breaking: renamed col_pal col_palette. Breaking: removed ability use col_palette col = NULL. Breaking: set_blanket weave_*, renamed arguments. Updated set_blanket() weave_col_palette_*() set default col_palette. Updated set_blanket() weave_*() set ggplot2 well ggblanket. Added jumble discrete colour palette. Added red, pink purple. Changed col_palette_na default \"seashell3\". Added orientation argument *_mode_* functions use ggplot2. Breaking: aes_contrast, added arguments optimise modes, renamed arguments. Breaking: removed facet_labels_position facet_labels_switch. Breaking: adjusted *ness helper palettes. Added arguments *_mode_* control colours/linewidths etc. Minor *_mode_* updates. Made compatible extension geoms x y variables layer_data.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-700","dir":"Changelog","previous_headings":"","what":"ggblanket 7.0.0","title":"ggblanket 7.0.0","text":"CRAN release: 2024-03-28 Added set_blanket function, now required set style. Added weave_geom_defaults weave_annotate_defaults helper functions. Supported use colour fill. Breaking: removed alpha arguments. Breaking: renamed mode_set weave_mode. Breaking: aes_contrast, renamed col_pal contrast_pal. Breaking: removed greys. Breaking: removed plum. Improved *_expand defaults histograms bar graphs etc. Fixed bug support use named col_pal. Fixed bug positional scale reversed *_expand_limits.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-600","dir":"Changelog","previous_headings":"","what":"ggblanket 6.0.0","title":"ggblanket 6.0.0","text":"CRAN release: 2024-02-23 Rewrote code completely. Exported gg_blanket function, allows ggproto geom (character string) added. Added aes_contrast colour aesthetic automatically contrasts fill aesthetic based work (@teunbrand, #649) ** Added alpha aesthetic support new alpha, alpha_pal alpha_* arguments. Added stat support ggproto object (character string). Added position support ggproto object (character string). Added transform support transform class object (character string). Added facet_axes facet_axis_labels arguments. Added facet_labels_position argument. Added gg_quantile, gg_rug, gg_function functions. Added col_steps argument support colouring steps. Added *_position argument support changing axis positions. Added mode_set function. Breaking: made theme_set set theme globally side-effects. Breaking: Added light_mode_*, dark_mode_* grey_mode_* family functions. Updated gg_* functions pretty removal axis line ticks. Changed default theme place legend top right. Changed NULL effect pretty axis *_limits = c(NA, NA) y_expand NULL. Improved default gridlines, changed default colour. Fixed bug col logical class. Added new helper hex codes blue, teal, orange, navy, plum, greys Updated default discrete palette. Breaking: shift ... front require users name arguments. Breaking: renamed theme argument mode. Breaking: renamed pal col_pal. Breaking: renamed pal_na col_pal_na. Breaking: renamed alpha alpha_pal. Breaking: alpha now refers aesthetic . Breaking: renamed *_include *_expand_limits. Breaking: renamed *_trans *_transform. Breaking: removed col_legend_place argument. Breaking: removed *_sec_axis argument. Breaking: removed light_mode dark_mode functions. Breaking: removed col_scale argument. Breaking: removed gg_blank function. Breaking: removed *_gridlines arguments. Breaking: renamed facet_switch argument facet_labels_switch. Breaking: removed guardian function. Breaking: renamed str_keep_seq replace_seq. Breaking: renamed titles titles_to_case. Breaking: removed magic *_title = \"\" removed title. Improved log transform defaults. Changed legend.byrow FALSE. gg_* function’s help now inherits parameters gg_blanket (@olivroy, #625). improved documentation help (@olivroy, #643).","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-520","dir":"Changelog","previous_headings":"","what":"ggblanket 5.2.0","title":"ggblanket 5.2.0","text":"CRAN release: 2023-11-10 Updated colours: #357BA2 mako[9](5) col aesthetic, guardian discrete 4 less colours, scales:hue_pal 5 colours, viridisLite::mako reversed continuous, \"grey\" NA. Breaking: removed pal_* functions. Removed unnecessary messages. Fixed bug col_breaks working numeric col. Fixed bug str_keep_seq working date, datetime time class. Fixed bug time class variables work. Fixed bug gg_contour_filled gg_density_filled default number colours. Improved default positional breaks. Ensured positional breaks take expand account. Updated gg_qq, includes geom_qq_line layer, nicer x_title, y_title coord defaults. Added positional scale arguments gg_sf (.e. *_limits, *_expand, *_breaks, *_labels). Improved margins col_legend_place top.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-510","dir":"Changelog","previous_headings":"","what":"ggblanket 5.1.0","title":"ggblanket 5.1.0","text":"CRAN release: 2023-09-19 Fixed bug col variable reversing non-flipped. Added pal_light_mode pal_dark_mode.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-500","dir":"Changelog","previous_headings":"","what":"ggblanket 5.0.0","title":"ggblanket 5.0.0","text":"CRAN release: 2023-09-12 Added mapping argument allow extra aesthetics included, shape (use delayed evaluation aesthetics col, colour, fill alpha). Added stat argument back flexibility. Added linetype_title, shape_title, size_title arguments. Added str_keep_seq helper function support keeping labels sequence. Breaking: made horizontal y characters factors plot values low bottom high top. Breaking: removed lower, middle, upper, xlower, xmiddle, xupper arguments gg_blank. Updated *_breaks defaults. Made plot order logical variables TRUE first. Added pal_discrete2 6 colour blind safe colours light background theme.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-400","dir":"Changelog","previous_headings":"","what":"ggblanket 4.0.0","title":"ggblanket 4.0.0","text":"CRAN release: 2023-08-08 Breaking: removed stat argument gg_* functions except gg_blank. Breaking: renamed pal_hue pal_discrete made colours relatively red/green colour blind safe. Breaking: renamed gg_bin2d gg_bin_2d. Breaking: changed *_oob default back scales::oob_keep. Improved scales work better transformations, limits, breaks etc. Added gg_contour, gg_contour_filled, gg_density2d, gg_density2d_filled functions. Made default keep unused factors across scales facets. Made default continuous label function drop trailing zeros. Made default legend place simpler: bottom, unless continuous. Otherwise right. Added text aesthetic plotly::ggplotly.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-300","dir":"Changelog","previous_headings":"","what":"ggblanket 3.0.0","title":"ggblanket 3.0.0","text":"CRAN release: 2023-06-30 New theme functions: light_mode dark_mode. Breaking: removed gg_theme. Breaking: renamed *_grid arguments *_gridlines. Breaking: removed void argument. Breaking: removed gg_function. Breaking: made col_rescale require function (e.g. scales::rescale()). Added facet_switch argument. Made col_legend_place = \"none\" remove col legend. Made gg_bin2d gg_hex scales calculate way functions. raster, removed col aesthetic legend work. Improved gg_sf default alpha. Supported gg_sf work non-standard named geometry. Thanks Nik Mitchell Rosie Percival feedback.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-200","dir":"Changelog","previous_headings":"","what":"ggblanket 2.0.0","title":"ggblanket 2.0.0","text":"CRAN release: 2023-05-26 Made ggblanket work better adding layers. Made pal longer inherit layers col aesthetic. Made x y scales work better, including NA limits. Added 2 colours pal_hue. Breaking: changed default *oob argument scales::oob_censor. Breaking: changed default coord argument include clip = \"\" argument. Breaking: removed add_tooltip function. Breaking: changed pal functions pal_blue, pal_grey, pal_hue.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-180","dir":"Changelog","previous_headings":"","what":"ggblanket 1.8.0","title":"ggblanket 1.8.0","text":"CRAN release: 2023-04-24 Updated default colour palette. Updated default NA colour.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-170","dir":"Changelog","previous_headings":"","what":"ggblanket 1.7.0","title":"ggblanket 1.7.0","text":"CRAN release: 2023-03-06 Updated gg_theme default axis-line gridline thickness. Supported named pal vectors. Removed clip argument. Added coord argument. Added *_oob arguments. Improved *_limits works. Removed default gridlines gg_sf. Fixed bug default x_expand. Fixed bug gg_histogram scales. Critical fix support dplyr 1.1.0. Supported colouring date, datetime time variables. Made datetime breaks default waiver. Breaking: removed void argument gg_theme. Corrected bug gg_raster legend showing. Updated gg_raster *_limits *_expand defaults. Internal function make infinite values NA made compatible dplyr 1.1.0 (#269, @DavisVaughan)","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-160","dir":"Changelog","previous_headings":"","what":"ggblanket 1.6.0","title":"ggblanket 1.6.0","text":"CRAN release: 2022-11-18 Breaking: renamed add_tooltip_text add_tooltip changed column name “tooltip”. Breaking: coord argument removed. Added clip argument defaulted “”. Made x y limits also act within coord. Made gg_blank powerful flexible. Improved horizontal flipped plot scales. Fixed bugs relating free facet_scales scale limits. Improved vignette.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-150","dir":"Changelog","previous_headings":"","what":"ggblanket 1.5.0","title":"ggblanket 1.5.0","text":"CRAN release: 2022-10-14 Breaking: redesigned gg_theme. Added automatic gridline removal. Added gg_bin2d function. Added gg_hex function. Added col_trans col_rescale arguments. Made col_legend_place default “r” numeric col variable. Made *_title = \"\" equivalent + labs(* = NULL). Supported x y datetime variables. Supported x y time variables. Redesigned internal code x, y col scales.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-140","dir":"Changelog","previous_headings":"","what":"ggblanket 1.4.0","title":"ggblanket 1.4.0","text":"CRAN release: 2022-09-02 Breaking: Removed col_intervals argument. Breaking: Removed *_oob argument. Breaking: gg_theme, changed *_style arguments *_face. Breaking: gg_theme, changed font arguments family. Added gg_polygon function. Added col_continuous argument support colouring “steps”. Added col_legend_rev argument reverse legends. Added facet_layout argument faceting flexibility. Added facet_space argument support proportional facet panels. Removed width default. Improved default legend look continuous gradient. Improved scales y NULL plot horizontal. Fixed bug position = \"fill\". Updated messages. Added vignette.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-130","dir":"Changelog","previous_headings":"","what":"ggblanket 1.3.0","title":"ggblanket 1.3.0","text":"CRAN release: 2022-08-05 Breaking: removed facet_intervals argument. Breaking: made extensive changes gg_theme function. Added facet2 aesthetic support effortless grid faceting. Changed default background theme colours. Fixed bug *_limits *_include working correctly. Added *_sec_axis arguments. Changed *_oob default scales::oob_keep. Removed reversal logical variable order. Defaulted col_legend_place \"b\".","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-120","dir":"Changelog","previous_headings":"","what":"ggblanket 1.2.0","title":"ggblanket 1.2.0","text":"CRAN release: 2022-07-01 Breaking: Removed *_breaks_n *_breaks_width. Added support *_breaks receive function. Added *_include argument. Added *_trans argument. Modified default x_breaks behaviour x y numeric date. Enhanced gg_blank work one x y. Provided support ggplotly. Added new add_tooltip_text function. Added new titles argument apply function across titles. Support gg_ functions working stats. Removed size argument, anticipation ggplot2 3.4.0. Updated gg_theme title vjust margins.","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-110","dir":"Changelog","previous_headings":"","what":"ggblanket 1.1.0","title":"ggblanket 1.1.0","text":"CRAN release: 2022-05-27 Remove default sentence case transformation categorical variable labels. Updated scales work consistent way position = \"fill\".","code":""},{"path":"https://davidhodge931.github.io/ggblanket/news/index.html","id":"ggblanket-100","dir":"Changelog","previous_headings":"","what":"ggblanket 1.0.0","title":"ggblanket 1.0.0","text":"CRAN release: 2022-05-10 Initial release.","code":""}]