Tool: iStack: an R solution for plotting stacked bars using custom icons
10
gravatar for brettgao2018
8 months ago by
brettgao2018150
brettgao2018150 wrote:

At a recent conference, a colleague of mine presented a summary plot of her patient cohort in the form of stacked people icons, and it was wildly popular among the audience. Many asked how they can make such plot, but unfortunately it was made manually using powerpoint. Therefore we figured out a R solution to programmatically make this type of colored stack bar with any image icons on the internet:

iStack

Some examples:

https://upload.wikimedia.org/wikipedia/commons/d/d8/Person_icon_BLACK-01.svg enter image description here https://svgsilh.com/svg/295375.svg enter image description here

The function builds upon ggimage and is almost an automatic solution, with one remaining problem that one has to manually adjust the aspect ratio and icon size for the plot to look nice. Any suggestions on how to automate this step would be greatly appreciated.

Let us know what you stack!

tool R • 545 views
ADD COMMENTlink modified 8 months ago • written 8 months ago by brettgao2018150
2

+1 for using gains as an example!

ADD REPLYlink written 8 months ago by jrj.healey13k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1034 users visited in the last hour