ggvis is a data visualization package for R which lets you:

  • Declaratively describe data graphics with a syntax that is similar to ggplot2.
  • View and interact with the graphics on your local computer, or use them in an interactive web application with Shiny.

Data manipulation and transformation are done in R, and the graphics are rendered in a web browser, using Vega. For RStudio users, ggvis graphics display in a viewer panel, which is possible because RStudio is a web browser.

Presently, ggvis is in an alpha stage, and its API is still evolving. We strongly recommend that you do not rely on this for production, but feel free to explore. For questions and other discussion, please use mailing list.

ggvis is not yet available on CRAN, but you can install it directly from GitHub. Make sure you have the latest version of devtools (at least 1.4) and run the following:

devtools::install_github(c("hadley/testthat", "rstudio/shiny", "rstudio/ggvis"))

The ggvis source code is hosted at

Getting started with ggvis

More advanced topics

More about ggvis

  • Differences and similarities to ggplot2
  • The relationship between ggvis and Vega

Examples of ggvis graphics


Scatterplot with model fit line and interactive control: