An R wrapper for Vega
R CSS
Latest commit 9c88734 Oct 28, 2016 @reinholdsson reinholdsson committed on GitHub Merge pull request #2 from mrchypark/master
Update README.md deprecated function.
Permalink
Failed to load latest commit information.
R Update file path and move json files Apr 7, 2013
inst Update file path and move json files Apr 7, 2013
man Update scale method Apr 7, 2013
.gitignore Init package Apr 3, 2013
DESCRIPTION Rename all methods Apr 6, 2013
LICENSE Init package Apr 3, 2013
NAMESPACE Rename all methods Apr 6, 2013
README.md Update README.md Oct 27, 2016

README.md

rVega: An R wrapper for Vega

Created by Thomas Reinholdsson (reinholdsson@gmail.com).

Shiny demo: http://glimmer.rstudio.com/reinholdsson/rVega-treemap/.

More about Vega: http://trifacta.github.com/vega/.

Installation

devtools::install_github("metagraf/rVega")

Examples

library(rVega)
treemap(1:26, letters)

Demo: http://glimmer.rstudio.com/reinholdsson/rVega-demo-1/

Geopath

geopath(...)  # to be updated

Demo: http://glimmer.rstudio.com/reinholdsson/rVega-demo-2/

Use with Shiny

server.R

library(rVega)
shinyServer(function(input, output) {
    output$plot <- renderVega({
        treemap(1:26, letters)
    })
})

ui.R

library(rVega)
shinyUI(bootstrapPage(
    vegaOutput("plot")
))

See also