Skip to content

stringoferrors/plotly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

889 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

plotly

An R package for creating (and modifying) interactive web-based graphs via plotly's API.

Installation

plotly is not (yet) available on CRAN, but you can easily install it via devtools:

devtools::install_github("ropensci/plotly")

Getting Started

Signup

If you don't already have a plotly account, either signup online or use the signup() function (see the help(signup) page for more details).

Note you can check if you have a username and API key with:

plotly:::verify("username")
plotly:::verify("api_key")

ggplot2 converter

If you use ggplot2, you can easily convert them to plotly!

library(plotly)
d <- diamonds[sample(nrow(diamonds), 1000), ]
p <- qplot(carat, price, size = I(4), data = d) + facet_wrap(~cut) + 
  geom_smooth(aes(colour = cut, fill = cut))
ggplotly(p)

Interact with the Plotly graph: https://plot.ly/~cpsievert/949

Custom plotlys

See the vignette entry for an overview of the

Learn More

Stay in touch

Contributing


About

Create interactive web graphics from R via plotly's JavaScript graphing library

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • R 99.8%
  • JavaScript 0.2%