开发者

Information Dashboards in R with ggplot2

I'm looking to create a static dashboard viewable in a web browser. And I'd like to create something like what Stephen Few does in his book Information Dashboard Design. (see example at bottom)

  1. Ggplot2: Shouldn't be any issue producing the graphs below, right?
  2. Dashboard Layout: Is grid suitable? Or should I lay things out in html/css?

If grid can do this easily enough, do you know of any good resources for learning how to us it? I've read the manual but I'm not finding it too helpful. I've seen the LearnR blog's ggplot2 sales dashboard (it uses grid) and I'm having trouble understanding the grid and layout part of things.

dasboard sample http://img开发者_开发问答251.imageshack.us/img251/1029/fewciodashboard800.png


See http://learnr.wordpress.com/2009/04/09/ggplot2-sales-dashboard/ for an example with code.


I think your html/css-direction might be a really smart move.

It might be easier to get an awesome layout using using Open Office draw and just link to the images, checking off the link box when insterting them for the first time. Open Office supports export to pdf making it usefull for reporting.

Even if it was straight forward to programaticly create a stunning document layout in R, I'm not sure it would be worth the time and effort.

Regards


I would suggest also having a look at the brew package, as in this example on the learnr blog.


A few years later, there are options available for dashboards and layouts with R.

  • For making grids in R, ggplot2's facet_wrap and facet_grid are excellent.
  • Shiny allows you to make web apps and dashboards with R. Shiny handles the HTML, CSS, and JavaScript for you. It's on CRAN.
  • To use ggplot2 to make an interactive Shiny dashboard with d3.js, you can connect to Plotly's ggplot2 figure converter. Here is a tutorial with code examples. Your published apps let you zoom, toggle, filter, pan, and see data on the hover, e.g.:

    Information Dashboards in R with ggplot2



    Disclaimer: I'm on the Plotly team.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜