Skip to content

paleolimbot/ggr6

Repository files navigation

ggr6

Lifecycle: experimental Travis build status Codecov test coverage

The goal of ggr6 is to provide a modern developer-facing implementation of Wilkinson’s Grammar of Graphics using the best available tools.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("paleolimbot/ggr6")

Example

Currently, there are no exported functions or classes, so to experiment you’ll have to fork and use devtools::load_all(".").

graphic <- Graphic$new()$
  add_layer(
    Layer$new(
      ggplot2::mpg,
      mapping = ColumnMappingQuosure$new(x = cty, y = hwy, col = class),
      geom = GeomPoint$new()
    )
  )$
  theme_set(points.pch = 17)

Builder$new(graphic, GraphicsRenderer$new())$render()

About

An Implementation of the Grammar of Graphics in R6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages