All Projects → plotly → Dashr

plotly / Dashr

Licence: mit
Dash for R - An R interface to the Dash ecosystem for creating analytic web applications

Programming Languages

python
139335 projects - #7 most used programming language
r
7636 projects

Projects that are alternatives of or similar to Dashr

Dash Docs
📖 The Official Dash Userguide & Documentation
Stars: ✭ 338 (+0.3%)
Mutual labels:  data-science, plotly-dash, dash, data-visualization, plotly
Dash
Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.
Stars: ✭ 15,592 (+4526.71%)
Mutual labels:  data-science, plotly-dash, dash, data-visualization, plotly
Dash.jl
Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.
Stars: ✭ 248 (-26.41%)
Mutual labels:  data-science, plotly-dash, dash, data-visualization, plotly
Dash Table
A First-Class Interactive DataTable for Dash
Stars: ✭ 382 (+13.35%)
Mutual labels:  data-science, plotly-dash, dash, data-visualization, plotly
Dash Stock Tickers Demo App
Dash Demo App - Stock Tickers
Stars: ✭ 108 (-67.95%)
Mutual labels:  data-science, dash, data-visualization, plotly
Dash Oil And Gas Demo
Dash Demo App - New York Oil and Gas
Stars: ✭ 156 (-53.71%)
Mutual labels:  data-science, dash, data-visualization, plotly
Slapdash
Boilerplate for bootstrapping scalable multi-page Dash applications
Stars: ✭ 225 (-33.23%)
Mutual labels:  plotly-dash, dash, data-visualization, plotly
Fitly
Self hosted web analytics for endurance athletes
Stars: ✭ 65 (-80.71%)
Mutual labels:  plotly-dash, dash, data-visualization, plotly
Dash Cytoscape
Interactive network visualization in Python and Dash, powered by Cytoscape.js
Stars: ✭ 309 (-8.31%)
Mutual labels:  data-science, plotly-dash, dash, plotly
Bubbly
A python package for plotting animated and interactive bubble charts using Plotly
Stars: ✭ 37 (-89.02%)
Mutual labels:  data-science, data-visualization, plotly
dash-redis-celery-periodic-updates
Demo apps now maintained in https://github.com/plotly/dash-enterprise-docs
Stars: ✭ 47 (-86.05%)
Mutual labels:  plotly, dash, plotly-dash
dash-flexbox-grid
Wrapper around react-flexbox-grid for Plotly Dash
Stars: ✭ 19 (-94.36%)
Mutual labels:  plotly, dash, plotly-dash
dash-admin
CLI tool for initiating dash boilerplate
Stars: ✭ 22 (-93.47%)
Mutual labels:  plotly, dash, plotly-dash
Plotly.js
Open-source JavaScript charting library behind Plotly and Dash
Stars: ✭ 14,268 (+4133.83%)
Mutual labels:  plotly-dash, data-visualization, plotly
Py Quantmod
Powerful financial charting library based on R's Quantmod | http://py-quantmod.readthedocs.io/en/latest/
Stars: ✭ 155 (-54.01%)
Mutual labels:  data-science, data-visualization, plotly
Dtale
Visualizer for pandas data structures
Stars: ✭ 2,864 (+749.85%)
Mutual labels:  data-science, plotly-dash, data-visualization
Plotly Graphing Library For Matlab
Plotly Graphing Library for MATLAB®
Stars: ✭ 234 (-30.56%)
Mutual labels:  data-science, data-visualization, plotly
2019-nCoV-dash
新型冠状病毒(2019-nCoV)肺炎(COVID-19)疫情展示
Stars: ✭ 13 (-96.14%)
Mutual labels:  plotly, dash, plotly-dash
Dash Sample Apps
Open-source demos hosted on Dash Gallery
Stars: ✭ 2,090 (+520.18%)
Mutual labels:  plotly-dash, dash, plotly
Tablesaw
Java dataframe and visualization library
Stars: ✭ 2,785 (+726.41%)
Mutual labels:  data-science, data-visualization, plotly

CircleCI GitHub CRAN status

Dash for R

Create beautiful, analytic web applications in R.

Documentation | Gallery

Installation

https://dashr.plotly.com/installation

🛑 Make sure you're on at least version 3.0.2 of R. You can see what version of R you have by entering version in the R CLI. CRAN is the easiest place to download the latest R version.

As of 2020-06-04, dash and the currently released versions of all core component libraries are available for download via CRAN! Installing dash and its dependencies is as simple as

install.packages("dash")

Users who wish to install (stable) development versions of the package as well as Dash components from GitHub may instead use install_github and specify the development branch:

install.packages(c("fiery", "routr", "reqres", "htmltools", "base64enc", "plotly", "mime", "crayon", "devtools"))

# installs dashHtmlComponents, dashCoreComponents, and dashTable
# and will update the component libraries when a new package is released
devtools::install_github("plotly/dashR", ref="dev", upgrade = TRUE)

Then, to load the packages in R:

library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)
library(dashTable)

That's it!

Getting Started

https://dashr.plotly.com/getting-started

The R package dash makes it easy to create reactive web applications powered by R. It provides an R6 class, named Dash, which may be initialized via the new() method.

library(dash)
library(dashHtmlComponents)
library(dashCoreComponents)

app <- Dash$new()

Similar to Dash for Python and Dash for Julia, every Dash for R application needs a layout (i.e., user interface) and a collection of callback functions which define the updating logic to perform when input value(s) change. Take, for instance, this basic example of formatting a string:

app$layout(
  htmlDiv(
    list(
      dccInput(id = "inputID", value = "initial value", type = "text"),
      htmlDiv(id = "outputID")
    )
  )
)

app$callback(output = list(id="outputID", property="children"),
             params = list(input(id="inputID", property="value"),
                      state(id="inputID", property="type")),
  function(x, y) {
    sprintf("You've entered: '%s' into a '%s' input control", x, y)
  }
)

app$run_server(showcase = TRUE)

Here the showcase = TRUE argument opens a browser window and automatically loads the Dash app for you.

Hello world example using dccGraph

app <- Dash$new()

app$layout(
  htmlDiv(
    list(
      dccInput(id = "graphTitle",
               value = "Let's Dance!",
               type = "text"),
      htmlDiv(id = "outputID"),
      dccGraph(id = "giraffe",
               figure = list(
                 data = list(x = c(1,2,3), y = c(3,2,8), type = "bar"),
                 layout = list(title = "Let's Dance!")
               )
      )
    )
  )
)

app$callback(output = list(id = "giraffe", property = "figure"),
             params = list(input("graphTitle", "value")),
             function(newTitle) {

                 rand1 <- sample(1:10, 1)

                 rand2 <- sample(1:10, 1)
                 rand3 <- sample(1:10, 1)
                 rand4 <- sample(1:10, 1)

                 x <- c(1,2,3)
                 y <- c(3,6,rand1)
                 y2 <- c(rand2,rand3,rand4)

                 df = data.frame(x, y, y2)

                 list(
                   data =
                     list(
                       list(
                         x = df$x,
                         y = df$y,
                         type = "bar"
                       ),
                       list(
                         x = df$x,
                         y = df$y2,
                         type = "scatter",
                         mode = "lines+markers",
                         line = list(width = 4)
                       )
                     ),
                   layout = list(title = newTitle)
                 )
               }
)

app$callback(output = list(id = "outputID", property = "children"),
             params = list(input("graphTitle", "value"),
                           state("graphTitle", "type")),
             function(x, y) {
                 sprintf("You've entered: '%s' into a '%s' input control", x, y)
             }
)

app$run_server(showcase = TRUE)

Screenshot of "Hello World" app

hello_dcc

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].