NCI → Molecular Genetics 5670600.00%NIAID → Cognitive Neuroscience 5123800.00%NINDS → Tumor Cell Biology 5102000.00%NINDS → Drug Discovery 4845900.00%NIGMS → Vector Biology 4501800.00%NCI → Aging and Geriatrics 4431100.00%NHLBI → Tumor Progression 4418700.00%NIGMS → Drug Discovery 4270100.00%NIAID → Aging and Geriatrics 4256200.00%NIGMS → Tumor Progression 4234100.00%NIAID → Molecular Genetics 4225600.00%NIAID → Aging and Geriatrics 4161700.00%NIGMS → Vector Biology 4143300.00%NIGMS → Macromolecular Structure 4126100.00%NCI → Tumor Cell Biology 4003900.00%NHLBI → Tumor Progression 3924800.00%NIGMS → Tumor Progression 3920900.00%NCI → Cognitive Neuroscience 3916800.00%NINDS → Infectious Diseases 3898100.00%NHLBI → Tumor Cell Biology 3876700.00%NINDS → Cognitive Neuroscience 3854200.00%NIAID → Macromolecular Structure 3827500.00%NIAID → Vector Biology 3789100.00%NINDS → Tumor Progression 3789000.00%NIGMS → Macromolecular Structure 3771400.00%NIAID → Drug Discovery 3768200.00%NIAID → Molecular Genetics 3721600.00%NCI → Aging and Geriatrics 3708700.00%NIGMS → Drug Discovery 3681700.00%NIGMS → Tumor Cell Biology 3674300.00%NINDS → Molecular Genetics 3644000.00%NIAID → Cognitive Neuroscience 3625400.00%NCI → Drug Discovery 3605600.00%NCI → Infectious Diseases 3605400.00%NIAID → Infectious Diseases 3507400.00%NIGMS → Macromolecular Structure 3436000.00%NIAID → Molecular Genetics 3366200.00%NINDS → Macromolecular Structure 3363200.00%NINDS → Medical Imaging 3345900.00%NINDS → Medical Imaging 3345000.00%NIGMS → Drug Discovery 3330100.00%NHLBI → Macromolecular Structure 3302500.00%NIAID → Vector Biology 3300300.00%NIGMS → Macromolecular Structure 3264400.00%NINDS → Aging and Geriatrics 3219100.00%NINDS → Tumor Cell Biology 3192300.00%NIAID → Vector Biology 3120700.00%NHLBI → Tumor Progression 3103700.00%NCI → Drug Discovery 3040900.00%NINDS → Cognitive Neuroscience 3033800.00%NIGMS → Macromolecular Structure 3025200.00%NIGMS → Infectious Diseases 3007600.00%NHLBI → Aging and Geriatrics 2984000.00%NHLBI → Molecular Genetics 2962400.00%NIAID → Infectious Diseases 2922100.00%NCI → Medical Imaging 2887700.00%NHLBI → Tumor Progression 2849300.00%NHLBI → Medical Imaging 2833600.00%NIGMS → Macromolecular Structure 2788200.00%NIGMS → Vector Biology 2778400.00%NCI → Cognitive Neuroscience 2722600.00%NHLBI → Medical Imaging 2611800.00%NHLBI → Tumor Progression 2580800.00%NCI → Molecular Genetics 2562000.00%NIAID → Vector Biology 2526500.00%NHLBI → Infectious Diseases 2513400.00%NIGMS → Medical Imaging 2496500.00%NIGMS → Infectious Diseases 2487400.00%NHLBI → Infectious Diseases 2485000.00%NIGMS → Cognitive Neuroscience 2409500.00%NCI → Medical Imaging 2387000.00%NIAID → Drug Discovery 2380600.00%NHLBI → Cognitive Neuroscience 2337200.00%NCI → Aging and Geriatrics 2318900.00%NCI → Cognitive Neuroscience 2312100.00%NINDS → Tumor Cell Biology 2273900.00%NCI → Tumor Progression 2221200.00%NINDS → Medical Imaging 2195200.00%NIAID → Tumor Progression 2153300.00%NHLBI → Tumor Cell Biology 2104500.00%NHLBI → Infectious Diseases 2064900.00%NINDS → Drug Discovery 1899400.00%NIAID → Medical Imaging 1873000.00%NINDS → Tumor Cell Biology 1781000.00%NCI → Vector Biology 1626600.00%NINDS → Aging and Geriatrics 1598100.00%NIAID → Molecular Genetics 1582000.00%NCI → Vector Biology 1573000.00%NINDS → Aging and Geriatrics 1570000.00%NCI → Vector Biology 1553000.00%NIAID → Medical Imaging 1533500.00%NCI → Tumor Cell Biology 1478800.00%NHLBI → Molecular Genetics 1437400.00%NHLBI → Macromolecular Structure 1395500.00%NHLBI → Cognitive Neuroscience 1307500.00%NINDS → Molecular Genetics 1202200.00%NIGMS → Aging and Geriatrics 1191700.00%NCI → Drug Discovery 1097700.00%NHLBI → Tumor Cell Biology 974580.00%NINDS → Infectious Diseases -118380.00%NHLBI 52068280.00%NHLBITumor Progression 33195800.00%Tumor ProgressionNIGMS 66538700.00%NIGMSMedical Imaging 25509200.00%Medical ImagingNINDS 57033920.00%NINDSTumor Cell Biology 28461980.00%Tumor Cell BiologyNIAID 64764700.00%NIAIDNCI 56723600.00%NCIMolecular Genetics 30374000.00%Molecular GeneticsVector Biology 28912700.00%Vector BiologyDrug Discovery 31920200.00%Drug DiscoveryCognitive Neuroscience 30642900.00%Cognitive NeuroscienceAging and Geriatrics 29439500.00%Aging and GeriatricsMacromolecular Structure 32300000.00%Macromolecular StructureInfectious Diseases 26372920.00%Infectious Diseases

  1. grant_id <- 1:100
  2. funding_agency <- sample(rep(c("NIAID", "NIGMS", "NHLBI", "NCI", "NINDS"), 20))
  3. study_section <- sample(rep(
  4. c("Tumor Cell Biology", "Tumor Progression", "Vector Biology",
  5. "Molecular Genetics", "Medical Imaging", "Macromolecular Structure",
  6. "Infectious Diseases", "Drug Discovery",
  7. "Cognitive Neuroscience", "Aging and Geriatrics"), 10
  8. ))
  9. total_cost <- rnorm(100, mean = 30000, sd = 10000)
  10. # source, target and value have to be the names
  11. d <- data.frame(
  12. id = grant_id,
  13. source = funding_agency,
  14. target = study_section,
  15. value = total_cost
  16. )
  17. require(rCharts)
  18. sankeyPlot <- rCharts$new()
  19. sankeyPlot$setLib('//timelyportfolio.github.io/rCharts_d3_sankey')
  20. sankeyPlot$set(
  21. data = d,
  22. nodeWidth = 15,
  23. nodePadding = 10,
  24. layout = 32,
  25. width = 750,
  26. height = 500,
  27. labelFormat = ".1%"
  28. )
  29. sankeyPlot