{"repo":"plotly/plotly.R","free":true,"listed":false,"github":"https://github.com/plotly/plotly.R","clone":"git clone https://github.com/plotly/plotly.R.git","description":"An interactive graphing library for R","language":"R","stars":2675,"topics":["r","ggplot2","javascript","data-visualization","d3js","shiny","plotly","webgl","rstats","r-package"],"license":null,"category":"analytics","readme_excerpt":"An R package for creating interactive web graphics via the open source JavaScript graphing library plotly.js. Installation Install from CRAN: Or install the latest development version (on GitHub) via {remotes} : Getting started Web-based ggplot2 graphics If you use ggplot2, ggplotly() converts your static plots to an interactive web-based version\\! 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: 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 ","default_branch":null,"files":null,"tree":[],"storefront":"/r/plotly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/plotly/plotly.R/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}