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

[This article was first published on R – Nathaniel D. Phillips, PhD, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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 about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)