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

12,398

Version

0.6

License

MIT + file LICENSE

Maintainer

Last Published

August 26th, 2017

Functions in ggformula (0.6)

gf_ash

Average Shifted Histograms
stat_lm

Linear Model Displays
gf_boxplot

Formula interface to geom_boxplot()
gf_col

Formula interface to geom_col()
stat_spline

Geoms and stats for spline smoothing
gf_area

Formula interface to geom_area()
gf_labs

Non-layer functions for gf plots
gf_bar

Formula interface to geom_bar()
gf_contour

Formula interface to geom_contour()
gf_count

Formula interface to geom_count()
gf_dens

Formula interface to geom_line() and stat_density()
gf_density

Formula interface to geom_density()
gf_dist

Plot distributions
gf_dotplot

Formula interface to geom_dotplot()
gf_crossbar

Formula interface to geom_crossbar()
gf_curve

Formula interface to geom_curve()
gf_histogram

Formula interface to geom_histogram()
gf_jitter

Formula interface to geom_jitter()
gf_frame

Formula interface to geom_blank()
gf_freqpoly

Formula interface to geom_freqpoly()
gf_rug

Formula interface to geom_rug()
gf_segment

Formula interface to geom_segment()
gf_tile

Formula interface to geom_tile()
gf_violin

Formula interface to geom_violin()
gf_errorbar

Formula interface to geom_errorbar()
gf_errorbarh

Formula interface to geom_errorbarh()
gf_linerange

Formula interface to geom_linerange()
gf_abline

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

Formula interface to geom_quantile()
gf_raster

Formula interface to geom_raster()
gf_function

Layers displaying graphs of functions
gf_hex

Formula interface to geom_hex()
gf_pointrange

Formula interface to geom_pointrange()
gf_qq

Formula interface to geom_qq()
gf_smooth

Formula interface to geom_smooth()
gf_spline

Formula interface to geom_spline()
gf_path

Formula interface to geom_path()
gf_point

Formula interface to geom_point()
gf_spoke

Formula interface to geom_spoke()
gf_step

Formula interface to geom_step()
gf_density2d

Formula interface to geom_density2d()
gf_density_2d

Formula interface to geom_density_2d()
gf_label

Formula interface to geom_label()
gf_line

Formula interface to geom_line()
gf_text

Formula interface to geom_text()
gf_theme

Themes for ggformula
%>%

Pipe operator
reexports

Objects exported from other packages
gf_rect

Formula interface to geom_rect()
gf_ribbon

Formula interface to geom_ribbon()
StatAsh

ggproto classes for ggplot2
ggformula

Formula interface to ggplot2
stat_qqline

A Stat for Adding Reference Lines to QQ-Plots