Git Product home page Git Product logo

flightdeck's Introduction

Interactive Dashboards for Predictive Models

Travis-CI Build Status

FlightDeck is an R package designed to make it easy to create interactive dashboards for reporting outputs of predictive models.

Installation

FlighDeck is not currently available from CRAN, and is under acive development. You can install a stable binary from https://alteryx.github.io/drat or the development version from github.

# Install stable binary...
install.packages("flightdeck", 
  repos = c(getOption('repos'), alteryx = 'https://alteryx.github.io/drat')
)

# ... or development version from github using devtools.
devtools::install_github('alteryx/flightdeck')

Usage

Here is a single page dashboard generated using flightdeck.

library(htmltools)
mod <- lm(mpg ~ ., data = mtcars)

# Sidebar
sidebar <- fdSidebarMenu(
  fdMenuItem('Summary', icon = fdIcon('th'), pageName = 'page1')
)

# Body
row1 <- fdRow(
  fdInfoBox('Adjusted R-squared', '80.7%', 
    color = 'blue', icon = fdIcon('chart-line', lib = 'entypo')),
  fdInfoBox('F-Statistic', 13.93,  'on 10 and 21 degrees of freedom', 
    color = 'green', icon = fdIcon('star', lib = 'entypo')),
  fdInfoBox('Residual Standard Error', 2.65, 'on 21 degrees of freedom', 
    color = 'purple', icon = fdIcon('flash', lib = 'entypo'))
)

row2 <- fdRow(fdBox(fdPanelCoefficients(mod), width = 12))

page1 <- fdPage(row1, row2, id = 'page1', display = TRUE)

fdBoard(
  fdHeader(title = 'Linear Regression'),
  fdSidebar(sidebar),
  fdBody(page1)
)
<style> .figure img { max-width: 100%; box-shadow: 1px 2px 20px 0px rgba(0,0,0,0.25); border: 1px solid #ccc; display: block; margin-left: auto; margin-right: auto; margin-bottom: 30px; margin-top: 30px; } .figure .caption { display: none; } </style>

flightdeck's People

Contributors

piguy314159265 avatar ramnathv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.