Note that there are some explanatory texts on larger screens.

plurals
  1. POVisualize in R flow from one set of objects to another
    primarykey
    data
    text
    <p>I am interested in how grants are reviewed at the NIH. The way the grant review process works is that Congress allocates funding to various institutes (e.g., the National Cancer Institute, or NCI), and individual grants are submitted to these institutes. These institutes are organized around various funding priorities (e.g., cancer, infectious diseases, etc).</p> <p>However, when grants are reviewed, they are typically (but not always) sent to individual study sections, which are organized more around scientific disciplines. Thus, the "Tumor Progression" study section can find itself reviewing grants from both the National Cancer Institute and the National Heart, Lungs, and Blood institute (NHLBI) if a researcher submits a grant to NHLBI to study leukemia.</p> <p>I have a data frame in R that looks something like this:</p> <pre><code>grant_id &lt;- 1:100 funding_agency &lt;- sample(rep(c("NIAID", "NIGMS", "NHLBI", "NCI", "NINDS"), 20)) study_section &lt;- sample(rep(c("Tumor Cell Biology", "Tumor Progression", "Vector Biology", "Molecular Genetics", "Medical Imaging", "Macromolecular Structure", "Infectious Diseases", "Drug Discovery", "Cognitive Neuroscience", "Aging and Geriatrics"), 10) ) total_cost &lt;- rnorm(100, mean = 30000, sd = 10000) d &lt;- data.frame(grant_id, funding_agency, study_section, total_cost) some(d) grant_id funding_agency study_section total_cost 15 15 NINDS Vector Biology 25242.19 19 19 NCI Infectious Diseases 29075.21 50 50 NCI Drug Discovery 25176.35 62 62 NCI Tumor Progression 14264.34 64 64 NIAID Tumor Cell Biology 30024.13 </code></pre> <p>I would like to create two visualizations of these data, hopefully using R; one that shows how grants that are submitted to individual institutes are assigned to study sections, and a second that shows the dollar amount of the grants that are assigned by the institutes to study sections. What I ultimately want is a chart like you see in the following websites:</p> <p><a href="http://peoplemov.in/" rel="nofollow">Migration flow</a></p> <p><a href="http://www.unc.edu/~ncaren/majors/" rel="nofollow">College major to job pipelines</a></p> <p>Does anybody know of an R package and / or have some sample code to create a chart like you find on the websites above? Alternatively, is there a different visualization that I should consider that would accomplish the same goals?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload