Using Plot.ly package to create dashboard in R

I have taken DSO-510 Business Analytics this semester. In the final phase of presentation, Prof.Selby asked us to create a webpage to show our results made in SAS. Actually this is a very challenging task since everybody knows  SAS is not good at fancy visualization. Without hesitating for long, I decided to use R instead.

However, R is also not good at creating graphs, at least, for basic users. There are tons of settings and configurations you can tweak, but who on earth could get the hang of them right away. I tried to ask some seniors for advice, and I had some suggestions like using Shinyapps, which is a very good javascript-embedded tool made by RStudio. Although I like challenges, I hope I can make things easier this time without focusing too much on how to use the tools and how to reinvent the wheels.

After researching some packages on the Internet, I came across Plot.ly which is an incredibly easy and fancy package to create plots. They are so easy to install that you just need only one line of command in R and all will be set. It contains a lot of presets in color and design, and its official website has guidelines and tutorials and even example codes to keep users on the same page. I believe everyone who has experience in R will find it easy to learn. Most importantly, Plot.ly can save interactive graphs into HTML file, the feature that is perfect for those who want to create dashboards.

When I get enough interactive graphs, I started to think about how to make a dashboard. Fortunately I have seen some amazing dashboards in various presentations during this semester, so I think the primary factors are “overwhelming” and “informative”. To create an “overwhelming” dashboard, I need to arrange the positions and size of the graphs very well to create a feeling that this work is simply fabulous. To create an “informative” graph, the charts and plots need to be interactive, colorful and user friendly, and luckily Plot.ly has done these for me. Well, apparently, now is all about design.

1…2…3…Boom! Here comes the shitty work: R Dashboard

I am not professional in design, but I don’t like to ask real designers any questions, because I believe what interests me will be good design. To achieve that goal, I have taken a look at successful webpages about dashboards, and wrote and edit the code to mimic successful websites. If anyone is interested in how to arrange the plots, please take a look in my source code of the webpage, and I believe that should be the way to learn and get into discussion. Happy learning!

3 Comments

  1. BusterYGoo says:

    Hi! This is my first vacation to your blog site!
    We have been a team of volunteers and starting a new project within a community
    inside the same niche. Your site provided us valuable information to work on. You have done a marvellous
    job!

  2. milky tits says:

    Thanks for sharing, this is a fantastic blog article.Really thank you! Awesome.

  3. soyxxxuena says:

    Me ha maravillado este post, lo cierto es que está bastante cuidada la forma de expresarse, lo cual hace disfrutar de la lectura. Una vez leí algo que trataba de esto, y lo cierto es que tambien me encantó. Ojala que sigas escribiendo artículos tan impresionantes como este, puesto que voy a visitar frecuentemente tu blog.

Leave a Reply

Your email address will not be published. Required fields are marked *