Learn R Programming

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

784

Version

1.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Hodge

Last Published

September 2nd, 2022

Functions in ggblanket (1.4.0)

gg_crossbar

Crossbar ggplot.
gg_density

Density ggplot.
gg_jitter

Jitter ggplot.
gg_line

Line ggplot.
gg_polygon

polygon ggplot.
gg_histogram

Histogram ggplot.
gg_function

Function ggplot.
gg_linerange

Linerange ggplot.
gg_label

Label ggplot.
gg_point

Point ggplot.
gg_pointrange

Pointrange ggplot.
gg_path

Path ggplot.
gg_text

Text ggplot.
gg_theme

Quick theme for a ggplot.
gg_qq

Qq ggplot.
gg_raster

Raster ggplot.
gg_smooth

Smooth ggplot.
gg_step

Step ggplot.
gg_sf

Sf ggplot.
gg_segment

Segment ggplot.
pal_na

NA palette.
ggblanket-package

ggblanket: Simplify 'ggplot2' Visualisation
pal_d3_mix

D3 palette reordered.
%>%

Pipe operator
pal_viridis_mix

Viridis palette reordered.
gg_rect

Rect ggplot.
gg_ribbon

Ribbon ggplot.
gg_tile

Tile ggplot.
gg_violin

Violin ggplot.
gg_boxplot

Boxplot ggplot.
add_tooltip_text

Add a tooltip text column of united variable names and values.
gg_bar

Bar ggplot.
gg_errorbar

Errorbar ggplot.
gg_col

Col ggplot.
gg_blank

Blank ggplot.
gg_area

Area ggplot.
gg_freqpoly

Freqpoly ggplot.