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 by default
  • Scope: cover the most useful 80% of what ggplot2 does
  • Alignment: use conventions generally aligned with ggplot2.

Installation

install.packages("ggblanket")

Example

library(dplyr)
library(ggblanket)
library(palmerpenguins)

penguins |>
  tidyr::drop_na(sex) |> 
  mutate(sex = stringr::str_to_sentence(sex)) |>
  gg_histogram(
    x = flipper_length_mm,
    col = sex,
    facet = species)

Get started

Click here to start learning how ggblanket works.

Thanks!

Thank you to all authors of ggplot2, tidyverse, and the wider R ecosystem.

If you like ggblanket, please give the repository a star.

Copy Link

Version

Install

install.packages('ggblanket')

Monthly Downloads

520

Version

5.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

November 10th, 2023

Functions in ggblanket (5.2.0)

gg_blank

Blank ggplot
gg_contour

Contour ggplot
gg_boxplot

Boxplot ggplot
gg_bin_2d

Bin_2d ggplot
gg_contour_filled

Contour_filled ggplot
gg_bar

Bar ggplot
gg_area

Area ggplot
dark_mode

Dark theme for a ggplot
gg_crossbar

Crossbar ggplot
gg_col

Col ggplot
gg_label

Label ggplot
gg_density

Density ggplot
gg_density_2d

Density_2d ggplot
gg_hex

Hex ggplot
gg_freqpoly

Freqpoly ggplot
gg_histogram

Histogram ggplot
gg_errorbar

Errorbar ggplot
gg_line

Line ggplot
gg_density_2d_filled

Density_2d_filled ggplot
gg_jitter

Jitter ggplot
gg_linerange

Linerange ggplot
gg_polygon

Polygon ggplot
gg_rect

Rect ggplot
gg_raster

Raster ggplot
gg_point

Point ggplot
gg_path

Path ggplot
gg_pointrange

Pointrange ggplot
gg_qq

Qq ggplot
gg_segment

Segment ggplot
gg_ribbon

Ribbon ggplot
gg_violin

Violin ggplot
gg_tile

Tile ggplot
na_if_inf

Convert Infinite values to NA
gg_step

Step ggplot
gg_sf

Sf ggplot
gg_smooth

Smooth ggplot
gg_text

Text ggplot
light_mode

Light theme for a ggplot
guardian

Colour blind safe categorical palette with 4 colours
str_keep_seq

Keep elements in a vector sequence, and replace the rest with ""
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
pal_dark_mode

Default colours used in the dark_mode theme.
pal_light_mode

Default colours used in the light_mode theme.
%>%

Pipe operator