Learn R Programming

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

Formula interface to ggplot2

ggformula introduces a family of graphics functions, gf_point(), gf_density(), and so on, bring the formula interface to ggplot(). This captures and extends the excellent simplicity of the lattice-graphics formula interface, while providing the intuitive "add this component" capabilities of ggplot2.

Installation

Installations from CRAN are done in the usual way. The development version of the package is here on GitHub. To install it, use the following commands in your R system.

# Install devtools if necessary
install.packages("devtools")

# Install ggformula
devtools::install_github("projectMOSAIC/ggformula")

Tutorials

Interactive tutorials demonstrating the package functionality can be run with

learnr::run_tutorial("introduction", package = "ggformula")
learnr::run_tutorial("refining", package = "ggformula")

Package Vignette

The package vignette is available at https://cran.r-project.org/package=ggformula/vignettes/ggformula.html.

Copy Link

Version

Install

install.packages('ggformula')

Monthly Downloads

16,329

Version

0.7.0

License

MIT + file LICENSE

Maintainer

Last Published

May 22nd, 2018

Functions in ggformula (0.7.0)

gf_facet_wrap

Add facets to a plot
gf_point

Formula interface to geom_point()
gf_crossbar

Formula interface to geom_crossbar()
gf_smooth

Formula interface to geom_smooth()
gf_line

Formula interface to geom_line() and geom_path()
gf_abline

Reference lines -- horizontal, vertical, and diagonal.
gf_fitdistr

Plot density function based on fit to data
gf_linerange

Formula interface to geom_linerange() and geom_pointrange()
gf_freqpoly

Formula interface to geom_freqpoly()
gf_spline

Formula interface to geom_spline()
gf_text

Formula interface to geom_text() and geom_label()
gf_theme

Themes for ggformula
gf_rug

Formula interface to geom_rug()
gf_hex

Formula interface to geom_hex()
gf_function

Layers displaying graphs of functions
gf_polygon

Formula interface to geom_polygon()
gf_rect

Formula interface to geom_rect()
gf_ribbon

Formula interface to geom_ribbon()
gf_segment

Formula interface to geom_segment()
gf_qq

Formula interface to geom_qq()
StatAsh

ggproto classes for ggplot2
gf_spoke

Formula interface to geom_spoke()
gf_histogram

Formula interface to geom_histogram()
gf_jitter

Formula interface to geom_jitter()
gf_quantile

Formula interface to geom_quantile()
gf_raster

Formula interface to geom_raster()
gf_tile

Formula interface to geom_tile()
gf_step

Formula interface to geom_step()
ggformula

Formula interface to ggplot2
reexports

Objects exported from other packages
%>%

Pipe operator
stat_qqline

A Stat for Adding Reference Lines to QQ-Plots
stat_fitdistr

A stat for fitting distributions
gf_violin

Formula interface to geom_violin()
gf_ash

Average Shifted Histograms
stat_lm

Linear Model Displays
stat_spline

Geoms and stats for spline smoothing
gf_contour

Formula interface to geom_contour()
gf_bar

Formula interface to geom_bar()
gf_col

Formula interface to geom_col()
gf_area

Formula interface to geom_area()
gf_boxplot

Formula interface to geom_boxplot()
gf_density_2d

Formula interface to geom_density_2d()
gf_blank

Formula interface to geom_blank()
gf_density

Formula interface to stat_density()
gf_labs

Non-layer functions for gf plots
gf_dotplot

Formula interface to geom_dotplot()
gf_curve

Formula interface to geom_curve()
gf_count

Formula interface to geom_count()
gf_errorbarh

Formula interface to geom_errorbarh()
gf_dist

Plot distributions
gf_errorbar

Formula interface to geom_errorbar()