Skip to content

keminglabs/c2po-r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

C2PO R language bindings

C2PO is a grammar of graphics implementation inspired by Hadley Wickham's ggplot2 library. This R package uses the free online C2PO compiler and is limited to 1 MB of data. Plot specifications are compiled directly to an SVG string, which is returned:

library(c2po)

spec = list(
  data = data.frame(this=rnorm(5, 20), that=rnorm(5, 10))
, mapping = list(x = "this", y = "that")
, geom = "point"
)

c2po(spec) #=> "<svg ..."

This is an experimental package; the package API, plot specification syntax, and remote server may change or disappear at any time.

Install

Install from Github via the devtools package:

library(devtools)
devtools::install_github("c2po-r", username = "keminglabs")

Releases

No releases published

Packages

No packages published