Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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://img251.imageshack.us/img251/1029/fewciodashboard800.png

like image 255
user246211 Avatar asked Feb 04 '10 02:02

user246211


People also ask

Can you make dashboards in R?

Shiny enables R users to create incredible apps, interactive maps, and dashboards. And you don't need advanced web dev skills to build it!

What is the difference between ggplot and ggplot2?

You may notice that we sometimes reference 'ggplot2' and sometimes 'ggplot'. To clarify, 'ggplot2' is the name of the most recent version of the package. However, any time we call the function itself, it's just called 'ggplot'.

What does Geom_point () do in R?

The function geom_point() adds a layer of points to your plot, which creates a scatterplot. ggplot2 comes with many geom functions that each add a different type of layer to a plot.

Why do we use ggplot in R?

We use the function ggplot() to produce the plots when using the package. Therefore, ggplot() is the command, and the whole package is called ggplot2. It is a part of the R tidyverse, an ecosystem of packages designed with common APIs. It is the most widely used alternative to base R graphics.


1 Answers

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

like image 122
hadley Avatar answered Sep 19 '22 01:09

hadley