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)

iris |>
  mutate(Species = str_to_sentence(Species)) |> 
  gg_point(
    x = Sepal.Width,
    y = Sepal.Length,
    col = Species)

penguins |>
  mutate(sex = str_to_sentence(sex)) |> 
  gg_histogram(
    x = flipper_length_mm,
    col = sex,
    facet = species,
    pal = c("#1B9E77", "#9E361B"))

Thanks!

Thank you Hadley Wickham and all other authors of the ggplot2 package.

If you like ggblanket, please give the repository a star, tweet or blog about it, or tell a friend or colleague.

Copy Link

Version

Install

install.packages('ggblanket')

Monthly Downloads

520

Version

1.5.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

October 14th, 2022

Functions in ggblanket (1.5.0)

gg_errorbar

Errorbar ggplot.
gg_blank

Blank ggplot.
gg_boxplot

Boxplot ggplot.
gg_bin2d

Bin2d ggplot.
gg_bar

Bar ggplot.
gg_area

Area ggplot.
gg_crossbar

Crossbar ggplot.
gg_density

Density ggplot.
add_tooltip_text

Add a tooltip text column.
gg_col

Col ggplot.
gg_hex

Hex ggplot.
gg_freqpoly

Freqpoly ggplot.
gg_line

Line ggplot.
gg_histogram

Histogram ggplot.
gg_point

Point ggplot.
gg_jitter

Jitter ggplot.
gg_function

Function ggplot.
gg_path

Path ggplot.
gg_label

Label ggplot.
gg_linerange

Linerange ggplot.
gg_sf

Sf ggplot.
gg_pointrange

Pointrange ggplot.
gg_rect

Rect ggplot.
gg_segment

Segment ggplot.
gg_qq

Qq ggplot.
gg_smooth

Smooth ggplot.
gg_polygon

polygon ggplot.
gg_ribbon

Ribbon ggplot.
gg_step

Step ggplot.
gg_raster

Raster ggplot.
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
pal_viridis_mix

Viridis palette reordered.
pal_d3_mix

D3 palette reordered.
gg_text

Text ggplot.
gg_theme

Quick theme for a ggplot.
gg_tile

Tile ggplot.
pal_na

NA palette.
gg_violin

Violin ggplot.
%>%

Pipe operator