From fbf6045e33abe06c8190078d6691c3b97758fd6a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 23 Dec 2015 17:33:36 +0100 Subject: gnu: Add plotly. * gnu/packages/statistics.scm (r-plotly): New variable. --- gnu/packages/statistics.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index fefb71751c..5b98c912e4 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -1913,3 +1913,33 @@ black-and-white. They are also designed to be perceived by readers with the most common form of color blindness.") (license license:x11))) +(define-public r-plotly + (package + (name "r-plotly") + (version "2.0.3") + (source (origin + (method url-fetch) + (uri (cran-uri "plotly" version)) + (sha256 + (base32 + "16pqycns8qf0y1j21n009qf242lv0izwyidlx40zv88izxhg1vs0")))) + (build-system r-build-system) + (propagated-inputs + `(("r-base64enc" ,r-base64enc) + ("r-digest" ,r-digest) + ("r-ggplot2" ,r-ggplot2) + ("r-htmlwidgets" ,r-htmlwidgets) + ("r-httr" ,r-httr) + ("r-jsonlite" ,r-jsonlite) + ("r-magrittr" ,r-magrittr) + ("r-plyr" ,r-plyr) + ("r-viridis" ,r-viridis))) + (home-page "https://plot.ly/r") + (synopsis "Create interactive web graphics") + (description + "This package enables the translation of ggplot2 graphs to an interactive +web-based version and/or the creation of custom web-based visualizations +directly from R. Once uploaded to a plotly account, plotly graphs (and the +data behind them) can be viewed and modified in a web browser.") + (license license:x11))) + -- cgit 1.4.1