All Projects → ropensci → Plotly

ropensci / Plotly

Licence: other
An interactive graphing library for R

Programming Languages

javascript
184084 projects - #8 most used programming language
r
7636 projects
CSS
56736 projects

Projects that are alternatives of or similar to Plotly

Plotly Graphing Library For Matlab
Plotly Graphing Library for MATLAB®
Stars: ✭ 234 (-88.84%)
Mutual labels:  webgl, data-visualization, plotly, d3js
Iheatmapr
Complex, interactive heatmaps in R
Stars: ✭ 242 (-88.45%)
Mutual labels:  r-package, rstats, data-visualization, plotly
Moderndive book
Statistical Inference via Data Science: A ModernDive into R and the Tidyverse
Stars: ✭ 527 (-74.86%)
Mutual labels:  ggplot2, rstats, data-visualization
Shinyjs
💡 Easily improve the user experience of your Shiny apps in seconds
Stars: ✭ 566 (-73%)
Mutual labels:  shiny, r-package, rstats
3d Force Graph
3D force-directed graph component using ThreeJS/WebGL
Stars: ✭ 2,386 (+13.84%)
Mutual labels:  webgl, data-visualization, d3js
Shinyalert
🗯️ Easily create pretty popup messages (modals) in Shiny
Stars: ✭ 148 (-92.94%)
Mutual labels:  shiny, r-package, rstats
Ggpage
Creates Page Layout Visualizations in R 📄📄📄
Stars: ✭ 306 (-85.4%)
Mutual labels:  ggplot2, rstats, data-visualization
Ggthemr
Themes for ggplot2.
Stars: ✭ 697 (-66.75%)
Mutual labels:  ggplot2, rstats, data-visualization
Shinycssloaders
⌛ Add loading animations to a Shiny output while it's recalculating
Stars: ✭ 248 (-88.17%)
Mutual labels:  shiny, r-package, rstats
Soccergraphr
Soccer Analytics in R using OPTA data
Stars: ✭ 42 (-98%)
Mutual labels:  ggplot2, rstats, data-visualization
Tidymv
Tidy Model Visualisation for Generalised Additive Models
Stars: ✭ 25 (-98.81%)
Mutual labels:  ggplot2, r-package, rstats
Three Forcegraph
Force-directed graph as a ThreeJS 3d object
Stars: ✭ 84 (-95.99%)
Mutual labels:  webgl, data-visualization, d3js
Ggextra
📊 Add marginal histograms to ggplot2, and more ggplot2 enhancements
Stars: ✭ 299 (-85.73%)
Mutual labels:  ggplot2, r-package, rstats
Ggpointdensity
📈 📊 Introduces geom_pointdensity(): A Cross Between a Scatter Plot and a 2D Density Plot.
Stars: ✭ 286 (-86.35%)
Mutual labels:  ggplot2, r-package, rstats
Timevis
📅 Create interactive timeline visualizations in R
Stars: ✭ 470 (-77.58%)
Mutual labels:  shiny, r-package, rstats
cusumcharter
Easier CUSUM control charts. Returns simple CUSUM statistics, CUSUMs with control limit calculations, and function to generate faceted CUSUM Control Charts
Stars: ✭ 17 (-99.19%)
Mutual labels:  ggplot2, rstats, r-package
Waffle
🍁 Make waffle (square pie) charts in R
Stars: ✭ 614 (-70.71%)
Mutual labels:  ggplot2, rstats, data-visualization
Plotly.js
Open-source JavaScript charting library behind Plotly and Dash
Stars: ✭ 14,268 (+580.73%)
Mutual labels:  webgl, data-visualization, plotly
Gganimate
A Grammar of Animated Graphics
Stars: ✭ 1,744 (-16.79%)
Mutual labels:  ggplot2, rstats, data-visualization
Hrbrthemes
🔏 Opinionated, typographic-centric ggplot2 themes and theme components
Stars: ✭ 899 (-57.11%)
Mutual labels:  ggplot2, rstats, data-visualization

R-CMD-check CRAN Status CRAN Downloads monthly

An R package for creating interactive web graphics via the open source JavaScript graphing library plotly.js.

Installation

Install from CRAN:

install.packages("plotly")

Or install the latest development version (on GitHub) via {remotes}:

remotes::install_github("plotly/plotly")

Getting started

Web-based ggplot2 graphics

If you use ggplot2, ggplotly() converts your static plots to an interactive web-based version!

library(plotly)
g <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
  stat_density_2d(aes(fill = ..level..), geom = "polygon") + 
  xlim(1, 6) + ylim(40, 100)
ggplotly(g)

https://i.imgur.com/G1rSArP.gifv

By default, ggplotly() tries to replicate the static ggplot2 version exactly (before any interaction occurs), but sometimes you need greater control over the interactive behavior. The ggplotly() function itself has some convenient “high-level” arguments, such as dynamicTicks, which tells plotly.js to dynamically recompute axes, when appropriate. The style() function also comes in handy for modifying the underlying trace attributes (e.g. hoveron) used to generate the plot:

gg <- ggplotly(g, dynamicTicks = "y")
style(gg, hoveron = "points", hoverinfo = "x+y+text", hoverlabel = list(bgcolor = "white"))

https://i.imgur.com/qRvLgea.gifv

Moreover, since ggplotly() returns a plotly object, you can apply essentially any function from the R package on that object. Some useful ones include layout() (for customizing the layout), add_traces() (and its higher-level add_*() siblings, for example add_polygons(), for adding new traces/data), subplot() (for combining multiple plotly objects), and plotly_json() (for inspecting the underlying JSON sent to plotly.js).

The ggplotly() function will also respect some “unofficial” ggplot2 aesthetics, namely text (for customizing the tooltip), frame (for creating animations), and ids (for ensuring sensible smooth transitions).

Using plotly without ggplot2

The plot_ly() function provides a more direct interface to plotly.js so you can leverage more specialized chart types (e.g., parallel coordinates or maps) or even some visualization that the ggplot2 API won’t ever support (e.g., surface, mesh, trisurf, etc).

plot_ly(z = ~volcano, type = "surface")

https://plot.ly/~brnvg/1134

Learn more

To learn more about special features that the plotly R package provides (e.g., client-side linking, shiny integration, editing and generating static images, custom events in JavaScript, and more), see https://plotly-r.com. You may already be familiar with existing plotly documentation (e.g., https://plotly.com/r/), which is essentially a language-agnostic how-to guide for learning plotly.js, whereas https://plotly-r.com is meant to be more wholistic tutorial written by and for the R user. The package itself ships with a number of demos (list them by running demo(package = "plotly")) and shiny/rmarkdown examples (list them by running plotly_example("shiny") or plotly_example("rmd")). Carson also keeps numerous slide decks with useful examples and concepts.

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, asking questions, contributing changes to plotly, and our code of conduct.


https://ropensci.org

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].