Learn R Programming

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

ggblanket

Overview

ggblanket is a package of wrapper functions around the fantastic ggplot2 package.

The primary objective is to simplify ggplot2 visualisation.

Secondary objectives relate to:

  • Scope: cover the most useful 80% of what ggplot2 does
  • Design: produce well-designed visualisation by default
  • Alignment: use conventions generally aligned with ggplot2.

It is intended to be useful for all levels of experience from beginner to expert.

Website

Click here to get started learning how ggblanket works.

Installation

install.packages("ggblanket")

Examples

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

penguins |>
  gg_point(
    x = flipper_length_mm,
    y = body_mass_g,
    col = sex,
    facet = species,
    col_labels = stringr::str_to_sentence,
    pal = c("#1B9E77", "#9E361B")
  )

penguins |>
  tidyr::drop_na() |> 
  gg_density(
    x = flipper_length_mm,
    col = sex,
    facet = species,
    col_labels = stringr::str_to_sentence,
    pal = c("#1B9E77", "#9E361B"))

Thanks!

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

If you like ggblanket, please give the repository a star and help spread the word.

Copy Link

Version

Install

install.packages('ggblanket')

Monthly Downloads

520

Version

1.7.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

March 6th, 2023

Functions in ggblanket (1.7.0)

gg_bin2d

Bin2d ggplot
gg_crossbar

Crossbar ggplot
gg_bar

Bar ggplot
add_tooltip

Add a tooltip column
gg_boxplot

Boxplot ggplot
gg_errorbar

Errorbar ggplot
gg_blank

Blank ggplot
gg_area

Area ggplot
gg_density

Density ggplot
gg_col

Col ggplot
gg_label

Label ggplot
gg_freqpoly

Freqpoly ggplot
gg_function

Function ggplot
gg_point

Point ggplot
gg_jitter

Jitter ggplot
gg_linerange

Linerange ggplot
gg_hex

Hex ggplot
gg_line

Line ggplot
gg_path

Path ggplot
gg_histogram

Histogram ggplot
gg_qq

Qq ggplot
gg_pointrange

Pointrange ggplot
gg_ribbon

Ribbon ggplot
gg_smooth

Smooth ggplot
gg_polygon

Polygon ggplot
gg_step

Step ggplot
gg_sf

Sf ggplot
gg_segment

Segment ggplot
gg_rect

Rect ggplot
gg_raster

Raster ggplot
gg_text

Text ggplot
pal_viridis_mix

Viridis palette reordered.
pal_d3_mix

D3 palette reordered.
gg_tile

Tile ggplot
gg_theme

Quick theme for a ggplot
na_if_double

Convert Infinite values to NA
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
pal_na

NA palette.
%>%

Pipe operator
gg_violin

Violin ggplot