talira

Plotly for R

Interactive web graphics in R, built on plotly.js

open sourceMITfree

plotly is an R package for interactive web graphics built on the plotly.js JavaScript charting library, the R counterpart of Plotly.py. Its ggplotly() function turns a static ggplot2 plot into an interactive web chart, and plot_ly() is a direct interface to plotly.js inspired by the grammar of graphics. It adds client-side linking between views, Shiny integration, static image export and custom JavaScript events, with Shiny and R Markdown examples in the package. Carson Sievert maintains it, and Plotly Technologies holds its copyright.

Problems it solves

  • make my ggplot2 charts interactive with hover and zoom in R
  • add interactive charts to a Shiny app or R Markdown report
  • build interactive web graphics in R without writing JavaScript

Features

  • ggplotly() turns ggplot2 plots into interactive web charts
  • plot_ly() interface to plotly.js
  • client-side linking between views
  • Shiny integration
  • static image export
  • custom JavaScript events

Limitations

  • Maintained by the Plotly community rather than Plotly's own team.1