Learn R Programming

⚠️There's a newer version (12.2.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: 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

11.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

November 22nd, 2024

Functions in ggblanket (11.0.0)

flex_mode_base

Mode theme base
flex_mode_t

Flexible mode with top legend
aes_colour_contrast

A colour aesthetic for contrast
aes_colour_darken

Lighten/darken a colour/fill aesthetic
dark_mode_r

Dark mode theme family
blue

A blue colour
gg_crossbar

Crossbar ggplot
gg_area

Area ggplot
gg_boxplot

Boxplot ggplot
gg_col

Col ggplot
gg_bar

Bar ggplot
gg_density_2d

Density_2d ggplot
gg_point

Point ggplot
gg_pointrange

Pointrange ggplot
gg_histogram

Histogram ggplot
gg_density

Density ggplot
gg_density_2d_filled

Density_2d_filled ggplot
gg_contour

Contour ggplot
gg_function

Function ggplot
gg_jitter

Jitter ggplot
gg_contour_filled

Contour_filled ggplot
gg_linerange

Linerange ggplot
gg_label

Label ggplot
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
grey

A grey colour
gg_line

Line ggplot
gg_hex

Hex ggplot
gg_step

Step ggplot
gg_text

Text ggplot
gg_path

Path ggplot
mode_orientation_to_x

Orientate a mode used outside of a gg_* context
weave_geom_defaults

Set a series of geom defaults
%>%

Pipe operator
gg_rug

Rug ggplot
gg_segment

Segment ggplot
gg_bin_2d

Bin_2d ggplot
gg_rect

Rect ggplot
weave_mode

Set a mode
gg_sf

Sf ggplot
gg_ribbon

Ribbon ggplot
gg_quantile

Quantile ggplot
gg_smooth

Smooth ggplot
set_blanket

Set a style
gg_blanket

Blanket ggplot
gg_errorbar

Errorbar ggplot
weave_theme

Set a theme (without side-effects)
gg_freqpoly

Freqpoly ggplot
gg_raster

Raster ggplot
gg_tile

Tile ggplot
gg_polygon

Polygon ggplot
gg_qq

Qq ggplot
gg_violin

Violin ggplot
weave_col_palettes

Set a discrete colour and fill palettes
light_mode_r

Light mode theme family
lightness

Mode colour and linewidth defaults
jumble

The jumble palette
label_every_nth

Label every nth element
scale_x_symmetric

Symmetric x continuous scale
scale_y_symmetric

Symmetric y continuous scale
flex_mode_b

Flexible mode with bottom legend
flex_mode_r

Flexible mode with right legend