Icon Array: An R function (and Shiny App!) to create icon arrays

December 22, 2014
By

(This article was first published on R – Nathaniel D. Phillips, PhD, and kindly contributed to R-bloggers)

What if I told you there was a new drug that has been proven to DOUBLE your changes of getting over a cough? Sounds great doesn’t it? Well, before we (ahem) cough up the dough for drug X, let’s take a closer look at the clinical trial data:

First, let’s look at the results from the placebo condition:

Placebo

Ok, now let’s look at the results from the group of people given Drug X

Drug X

Hmmm, as we can see from the plots, while the users of Drug X were indeed twice as likely to get over the cold, they were also much more likely to develop side-effects.

Frequency grid displays such as these can help people understand risks. But creating the plots themselves is a bit of a pain. To solve this, I wrote an R function called Icon.Array. A beta version of the function implemented in a Shiny app is located at https://ndphillips.shinyapps.io/IconArray_App/.

To leave a comment for the author, please follow the link and comment on their blog: R – Nathaniel D. Phillips, PhD.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)