Learn R Programming

⚠️There's a newer version (12.4.0) of this package.Take me there.

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: use conventions aligned with ggplot2
  • Scope: cover much of what ggplot2 does.

Computational speed has been traded-off to achieve these objectives.

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 all authors of ggplot2, tidyverse, and the wider R ecosystem.

This R package is dedicated to my Dad (Peter Hodge, 1953–2023).

Copy Link

Version

Install

install.packages('ggblanket')

Monthly Downloads

784

Version

7.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

March 28th, 2024

Functions in ggblanket (7.0.0)

darkness

The dark_mode_* theme colours
gg_area

Area ggplot
gg_col

Col ggplot
dark_mode_t

Dark mode theme with top legend
gg_bin_2d

Bin_2d ggplot
gg_contour

Contour ggplot
gg_blanket

Blanket ggplot
gg_boxplot

Boxplot ggplot
gg_bar

Bar ggplot
gg_contour_filled

Contour_filled ggplot
gg_hex

Hex ggplot
gg_density_2d

Density_2d ggplot
gg_function

Function ggplot
gg_histogram

Histogram ggplot
gg_errorbar

Errorbar ggplot
gg_freqpoly

Freqpoly ggplot
gg_density_2d_filled

Density_2d_filled ggplot
gg_density

Density ggplot
gg_jitter

Jitter ggplot
gg_crossbar

Crossbar ggplot
gg_qq

Qq ggplot
gg_quantile

Quantile ggplot
gg_raster

Raster ggplot
gg_point

Point ggplot
gg_path

Path ggplot
gg_line

Line ggplot
gg_pointrange

Pointrange ggplot
gg_label

Label ggplot
gg_linerange

Linerange ggplot
gg_polygon

Polygon ggplot
gg_smooth

Smooth ggplot
gg_sf

Sf ggplot
gg_rect

Rect ggplot
gg_ribbon

Ribbon ggplot
gg_rug

Rug ggplot
gg_text

Text ggplot
gg_segment

Segment ggplot
gg_step

Step ggplot
gg_violin

Violin ggplot
gg_tile

Tile ggplot
light_mode_b

Light mode theme with bottom legend
light_mode_n

Light mode theme with no legend
grey_mode_r

Grey mode theme with right legend
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
light_mode_r

Light mode theme with right legend
grey_mode_t

Grey mode theme with top legend
grey_mode_b

Grey mode theme with bottom legend
grey_mode_n

Grey mode theme with no legend
light_mode_t

Light mode theme with top legend
orange

A orange colour
%>%

Pipe operator
greyness

The grey_mode_* theme colours
weave_annotate_defaults

Update a series of annotate defaults
teal

A teal colour
weave_geom_defaults

Update a series of geom defaults
set_blanket

Set the default style
weave_mode

Set the default mode
navy

A navy colour
replace_seq

Replace a sequence of elements in a vector
lightness

The light_mode_* theme colours
base_mode_n

Theme base for *_mode_n
dark_mode_b

Dark mode theme with bottom legend
dark_mode_r

Dark mode theme with right legend
dark_mode_n

Dark mode theme with no legend
aes_contrast

A colour aesthetic that automatically contrasts with fill.
base_mode_t

Theme base for *_mode_t
base_mode_r

Theme base for *_mode_r
blue

A blue colour
base_mode

Theme base for base_mode_* functions
base_mode_b

Theme base for *_mode_b