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

20,180

Version

0.6.2

License

MIT + file LICENSE

Maintainer

Randall Pruim

Last Published

February 6th, 2018

Functions in ggformula (0.6.2)

gf_count

Formula interface to geom_count()
gf_abline

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

Formula interface to geom_point()
gf_linerange

Formula interface to geom_linerange() and geom_pointrange()
gf_spline

Formula interface to geom_spline()
gf_spoke

Formula interface to geom_spoke()
gf_theme

Themes for ggformula
gf_tile

Formula interface to geom_tile()
gf_ash

Average Shifted Histograms
gf_line

Formula interface to geom_line() and geom_path()
gf_qq

Formula interface to geom_qq()
stat_lm

Linear Model Displays
gf_facet_wrap

Add facets to a plot
gf_area

Formula interface to geom_area()
gf_errorbarh

Formula interface to geom_errorbarh()
gf_quantile

Formula interface to geom_quantile()
gf_histogram

Formula interface to geom_histogram()
gf_labs

Non-layer functions for gf plots
gf_bar

Formula interface to geom_bar()
gf_jitter

Formula interface to geom_jitter()
stat_spline

Geoms and stats for spline smoothing
gf_curve

Formula interface to geom_curve()
stat_qqline

A Stat for Adding Reference Lines to QQ-Plots
gf_density_2d

Formula interface to geom_density_2d()
%>%

Pipe operator
ggformula

Formula interface to ggplot2
gf_raster

Formula interface to geom_raster()
gf_rect

Formula interface to geom_rect()
gf_dist

Plot distributions
gf_density

Formula interface to stat_density()
gf_fitdistr

Plot density function based on fit to data
gf_function

Layers displaying graphs of functions
gf_step

Formula interface to geom_step()
gf_ribbon

Formula interface to geom_ribbon()
gf_hex

Formula interface to geom_hex()
gf_rug

Formula interface to geom_rug()
gf_violin

Formula interface to geom_violin()
gf_text

Formula interface to geom_text() and geom_label()
StatAsh

ggproto classes for ggplot2
gf_freqpoly

Formula interface to geom_freqpoly()
gf_segment

Formula interface to geom_segment()
gf_smooth

Formula interface to geom_smooth()
stat_fitdistr

A stat for fitting distributions
reexports

Objects exported from other packages
gf_boxplot

Formula interface to geom_boxplot()
gf_blank

Formula interface to geom_blank()
gf_contour

Formula interface to geom_contour()
gf_col

Formula interface to geom_col()
gf_crossbar

Formula interface to geom_crossbar()
gf_errorbar

Formula interface to geom_errorbar()
gf_dotplot

Formula interface to geom_dotplot()