Automatic Generation of Interactive Visualizations for Statistical Results
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R Reexports plotly_json Feb 14, 2018
inst Update CITATION Apr 20, 2018
man Reexports plotly_json Feb 14, 2018
paper fix bib Apr 19, 2018
tests Documentation harness Jan 8, 2018
vignettes Prep for v0.1.2 release Apr 21, 2018
.Rbuildignore Prep for v0.1.2 release Apr 21, 2018
.gitignore fix bib Apr 19, 2018
.travis.yml Add travis yml Mar 20, 2018
CONDUCT.md Add community guidelines Apr 13, 2018
CONTRIBUTING.md Minor edits Apr 13, 2018
DESCRIPTION Prep for v0.1.2 release Apr 21, 2018
ISSUE_TEMPLATE.md Incorporate feedback Apr 19, 2018
NAMESPACE Reexports plotly_json Feb 14, 2018
NEWS.md Prep for v0.1.2 release Apr 21, 2018
README.md Prep for v0.1.2 release Apr 21, 2018
autoplotly.Rproj Initial commit Jan 7, 2018
cran-comments.md Prep for v0.1.2 release Apr 21, 2018

README.md

CRAN_Status_Badge Travis-CI Build Status DOI DOI

autoplotly

This R package provides functionalities to automatically generate interactive visualizations for many popular statistical results supported by ggfortify package with plotly.js and ggplot2 style. The generated visualizations can also be easily extended using ggplot2 syntax while staying interactive.

Please check out the introductory examples here.

Installation

To install the current version from CRAN, use:

install.packages("autoplotly")

To install from development version on Github, use:

devtools::install_github("terrytangyuan/autoplotly")

Example

# Automatically generate interactive plot for results produced by `stats::prcomp`
p <- autoplotly(prcomp(iris[c(1, 2, 3, 4)]), data = iris,
  colour = 'Species', label = TRUE, label.size = 3, frame = TRUE)

# You can apply additional ggplot2 elements to the generated interactive plot
p +
  ggplot2::ggtitle("Principal Components Analysis") +
  ggplot2::labs(y = "Second Principal Components", x = "First Principal Components")

# Or apply additional plotly elements to the generated interactive plot
p %>% plotly::layout(annotations = list(
  text = "Example Text",
  font = list(
    family = "Courier New, monospace",
    size = 18,
    color = "black"),
  x = 0,
  y = 0,
  showarrow = TRUE))

You can autoplotly many other statistical results automatically with the help of ggfortify. A complete list can be found here.