M.Adams
M.Adams

Reputation: 145

Interactive Web Dashboards in R

Can we create a interactive dashboard in R and send the html link to "Non" R user?
If we can, can someone please let me know the process.

I know package "shiny" helps in creating a interactive dashboard, but the end user has to have R in his machine in order explore it.

Upvotes: 1

Views: 3560

Answers (3)

Mateo Sanchez
Mateo Sanchez

Reputation: 1654

There are a few options for dashboards and layouts with R.

library(plotly)

dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
qplot(carat, price, data=dsamp, colour=clarity)

py <- plotly()
py$ggplotly()

The response is a URL that you can make public or private. For example: https://plot.ly/~chris/2223/price-vs-carat/. The plot is drawn with D3.js and is interactive. You can embed, zoom, toggle, and see text on the hover from the browser. The person you're sending to doesn't need to have R or Shiny.

enter image description here

These docs track coverage for the figure converter.

  • As Joe noted, Shiny allows you to make web apps and dashboards with R. You can connect to the ggplot2 figure converter, make a graph in Shiny, then save the graph and share as a Plotly URL. Here is a tutorial with code examples. Your published apps let you zoom, toggle, filter, pan, and see data on the hover, e.g.:

    enter image description here

    Disclaimer: I'm on the Plotly team.

Upvotes: 2

Joe Cheng
Joe Cheng

Reputation: 8061

We have a Shiny application hosting service that is currently in beta (register here).

Also in late January 2013 we'll be releasing Shiny Server as open source, so you can run applications on your own Linux server (or in the cloud, etc.).

Upvotes: 8

Spacedman
Spacedman

Reputation: 94222

You don't create web pages in R, you create web pages in HTML, CSS and Javascript.

Can you create HTML, CSS, and Javascript from R? Yes.

Can you serve web pages from R? Yes.

R has a built-in web server for mainly serving the internal help pages, but you can graft applications onto it. There's also the 'rook' package for more sophisticated web applications.

Learn to write a "Hello World" page using rook, then get back to us. Otherwise this question is waaaay too broad, and you haven't done much research, and I'll vote to close it.

Upvotes: -2

Related Questions