This part of the book teaches you how to leverage the plotly R package to create a variety of interactive graphics. There are two main ways to creating a plotly object: either by transforming a ggplot2 object (via ggplotly()) into a plotly object or by directly initializing a plotly object with plot_ly()/plot_geo()/plot_mapbox(). Both approaches have somewhat complementary strengths and weaknesses, so it can pay off to learn both approaches. Moreover, both approaches are an implementation of the Grammar of Graphics and both are powered by the JavaScript graphing library plotly.js, so many of the same concepts and tools that you learn for one interface can be reused in the other. Any graph made with the plotly R package is powered by the JavaScript library plotly.js. The plot_ly() function provides a ‘direct’ interface to plotly.js with some additional abstractions to help reduce typing.

Features

  • Web-based ggplot2 graphics
  • An R package for creating interactive web graphics via the open source JavaScript graphing library plotly.js
  • Use plotly without ggplot2
  • The plotly package takes a purely functional approach to a layered grammar of graphics
  • For more complex plots that modify a plotly graph many times over, code written in this way can become cumbersome to read
  • plotly has both add_histogram() and add_bars()

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow plotly

plotly Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of plotly!

Additional Project Details

Programming Language

R

Related Categories

R Data Visualization Software, R Libraries

Registered

2022-07-13