Skip to content

thomasp85/ggforce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 22, 2024
f1cbb31 · Jan 22, 2024
Jan 16, 2024
Jan 22, 2024
Jan 22, 2024
Jun 6, 2019
Sep 28, 2022
Jan 22, 2024
Feb 28, 2019
Mar 7, 2019
Jan 17, 2024
Mar 6, 2019
Mar 6, 2019
Jan 18, 2024
Jan 22, 2024
Jan 19, 2024
Aug 16, 2022
Aug 16, 2022
Aug 16, 2022
Jun 22, 2020
Oct 3, 2022

ggforce

R-CMD-check CRAN_Release_Badge CRAN_Download_Badge

Accelerating ggplot2

ggforce is a package aimed at providing missing functionality to ggplot2 through the extension system introduced with ggplot2 v2.0.0. Broadly speaking ggplot2 has been aimed primarily at explorative data visualization in order to investigate the data at hand, and less at providing utilities for composing custom plots a la D3.js. ggforce is mainly an attempt to address these “shortcomings” (design choices might be a better description). The goal is to provide a repository of geoms, stats, etc. that are as well documented and implemented as the official ones found in ggplot2.

Installation

You can install the released version of ggforce from CRAN with:

install.packages("ggforce")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("thomasp85/ggforce")

Features

ggforce is by design a collection of features with the only commonality being their tie to the ggplot2 API. Because of this an overview of all features would get too long for a README. The package has a website where every feature is described and justified with examples and plots. There should be a plot in the README of a visualization package though, so without further ado:

library(ggforce)
#> Loading required package: ggplot2
ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
  geom_point() +
  facet_zoom(x = Species == "versicolor")

Code of Conduct

Please note that the ‘ggforce’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.