Learn R Programming

ggblanket

Overview

ggblanket is a package of ggplot2 wrapper functions.

The primary objective is to simplify ggplot2 visualisation.

Secondary objectives relate to:

  • Design: produce well-designed visualisation
  • Alignment: align with ggplot2 and tidyverse
  • Scope: cover much of what ggplot2 does.

Computational speed has been traded-off.

Installation

install.packages("ggblanket")

Example

library(ggblanket)
library(palmerpenguins)

set_blanket()

penguins |>
  gg_histogram(
    x = flipper_length_mm,
    col = species,
  )

Get started

Click here to start learning how ggblanket works.

Thank you

Thanks to the developers of ggplot2, tidyverse and the R ecosystem.

For Dad, always missed (Peter Hodge, 1953-2023).

Copy Link

Version

Install

install.packages('ggblanket')

Monthly Downloads

940

Version

12.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

March 10th, 2025

Functions in ggblanket (12.2.0)

gg_area

Area ggplot
annotate_axis_line

Replace a axis line with an annotated segment
gg_bar

Bar ggplot
aes_colour_contrast

A colour aesthetic for contrast
dark_mode_r

Dark mode theme family
flex_mode_b

Flexible mode with bottom legend
flex_mode_r

Flexible mode with right legend
flex_mode_t

Flexible mode with top legend
flex_mode_base

Mode theme base
gg_blanket

Blanket ggplot
gg_bin_2d

Bin_2d ggplot
gg_density_2d

Density_2d ggplot
gg_contour_filled

Contour_filled ggplot
gg_contour

Contour ggplot
gg_density

Density ggplot
gg_density_2d_filled

Density_2d_filled ggplot
gg_boxplot

Boxplot ggplot
gg_crossbar

Crossbar ggplot
gg_col

Col ggplot
gg_linerange

Linerange ggplot
gg_errorbar

Errorbar ggplot
gg_histogram

Histogram ggplot
gg_line

Line ggplot
gg_jitter

Jitter ggplot
gg_hex

Hex ggplot
gg_path

Path ggplot
gg_freqpoly

Freqpoly ggplot
gg_label

Label ggplot
gg_function

Function ggplot
gg_quantile

Quantile ggplot
gg_ribbon

Ribbon ggplot
gg_point

Point ggplot
gg_ribbon_line

Ribbon line ggplot
gg_pointrange

Pointrange ggplot
gg_rect

Rect ggplot
gg_rug

Rug ggplot
gg_polygon

Polygon ggplot
gg_raster

Raster ggplot
gg_qq

Qq ggplot
grey

A grey colour
gg_text

Text ggplot
gg_tile

Tile ggplot
gg_violin

Violin ggplot
gg_sf

Sf ggplot
jumble

The jumble palette
gg_step

Step ggplot
gg_segment

Segment ggplot
gg_smooth

Smooth ggplot
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
scale_y_symmetric

Symmetric y continuous scale
set_geom_reference_line

Set the geom reference line defaults
label_every_nth

Label every nth element
light_mode_r

Light mode theme family
set_blanket

Set the style
set_geom_font

Set the text and label geom defaults
scale_x_symmetric

Symmetric x continuous scale
lightness

Mode colour and linewidth defaults
blue

A blue colour