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

604

Version

10.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 26th, 2024

Functions in ggblanket (10.0.0)

flex_mode_t

Flexible mode with top legend
aes_colour_darken

Lighten/darken a colour/fill aesthetic
gg_bar

Bar ggplot
dark_mode_r

Dark mode theme family
aes_colour_contrast

A colour aesthetic for contrast
flex_mode_base

Mode theme base
gg_boxplot

Boxplot ggplot
gg_contour_filled

Contour_filled ggplot
gg_density_2d

Density_2d ggplot
gg_density_2d_filled

Density_2d_filled ggplot
gg_blanket

Blanket ggplot
gg_col

Col ggplot
gg_contour

Contour ggplot
gg_bin_2d

Bin_2d ggplot
gg_crossbar

Crossbar ggplot
gg_density

Density ggplot
gg_freqpoly

Freqpoly ggplot
gg_function

Function ggplot
gg_jitter

Jitter ggplot
gg_hex

Hex ggplot
gg_line

Line ggplot
gg_path

Path ggplot
gg_histogram

Histogram ggplot
gg_label

Label ggplot
gg_linerange

Linerange ggplot
gg_errorbar

Errorbar ggplot
gg_rect

Rect ggplot
gg_polygon

Polygon ggplot
gg_pointrange

Pointrange ggplot
gg_ribbon

Ribbon ggplot
gg_qq

Qq ggplot
gg_segment

Segment ggplot
gg_quantile

Quantile ggplot
gg_point

Point ggplot
gg_raster

Raster ggplot
gg_rug

Rug ggplot
gg_text

Text ggplot
gg_violin

Violin ggplot
light_mode_r

Light mode theme family
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
gg_tile

Tile ggplot
gg_sf

Sf ggplot
gg_smooth

Smooth ggplot
gg_step

Step ggplot
grey

A grey colour
jumble

The jumble palette
weave_col_palette_c

Set a continuous colour palette
set_blanket

Set a style
weave_col_palette_d

Set a discrete colour palette
scale_y_symmetric

Symmetric y continuous scale
weave_geom_defaults

Set a series of geom defaults
mode_orientation_to_x

Orientate a mode used outside of a gg_* context
weave_col_palette_o

Set an ordinal colour palette
weave_theme

Set a theme (without side-effects)
%>%

Pipe operator
lightness

Mode colour and linewidth defaults
scale_x_symmetric

Symmetric x continuous scale
weave_mode

Set a mode
flex_mode_b

Flexible mode with bottom legend
gg_area

Area ggplot
flex_mode_r

Flexible mode with right legend
blue

A blue colour