NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > R > U.S. Cancer Research & R Shiny Application

U.S. Cancer Research & R Shiny Application

Eric Meyers
Posted on Aug 12, 2019

The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction

My career aspiration is to connect medical risk and treatment information from research facilities with individuals at risk and medical professionals. With that in mind, I wanted to build on my WebMD analysis with a more engaging form of research and insights for the medical community. I decided to extract general cancer diagnoses incidents in the United States from 1999 to 2015. 

When I began researching, I was disappointed to find very few dynamic and visually friendly resources pertaining to demographics and regions for such a widespread condition. I realized there is a real need for a dynamic application that could be used by medical researchers, hospital management, and potential cancer patients to make informed decisions around this terrible disease and hopefully aid the resource and information allocation for the public and treatment organizations. That's why I decided to build one for this project.

Purpose

I wanted to create an application that can easily identify trends associated with cancer diagnoses in the U.S. pertaining to demographic and geographic attributes. Are there patterns in Cancer diagnoses in gender, race, or age? Are there certain states that have proportionally more diagnoses than others? Is the rate at which cancer patients are being diagnosed increasing against the population growth of the U.S.?

Cancer research centers (i.e. Susan G Komen Foundation, the CDC, etc.), hospitals, and people at risk for cancer should have information that will enable them to make important decisions about where to allocate resources, locate vital help or information, or understand their disposition of risk for getting cancer. Unfortunately federal programs make information available with only limited access or with low resolution and diversity of graphical representation, making it difficult for these stakeholders to readily find the information they seek. 

Cancer Statistics in the U.S.

Cancer is the second leading cause of death in the U.S. (to Heart Disease), with more than 1.7 million diagnoses in 2018 and over 600k deaths (Source: Cancer.gov). The Centers for Disease Control and Prevention (CDC) has collected data on incidents of cancer diagnoses in the U.S. uniformly since 1999. The United States Cancer Statistics (USCS) are the official federal registries for cancer incidents collected, maintained, and distributed by the CDC. Data is collected and shown herein as the variables listed below.  For more information on the CDC and USCS, or to inspect/extract additional information, click here.

Features:

  • State
  • Year
  • Age Group
  • Gender
  • Race
  • Cancer Diagnosis Count

*Note: Although there are more than 100 types of cancer known and available in the USCS, this application features only the generalized cancer counts. I intend to optimize this application to include all specific forms of cancer in future work.

R Shiny Dashboard

I used the Shiny Dashboard library in R to build my application. As the data could only be extracted from a low-capacity online reporting tool, I first had to extract numerous .txt files; clean, parse, and convert types in the raw data; and merge into one uniform, cleaned dataset in .csv format. I then read this data into RStudio, began exploring and visualizing in aggregate, and lastly built dynamic and filterable tabs in a ui.R, server.R, and global.R to showcase many spatial and demographic distributions of cancer diagnoses.

I used Googleโ€™s gVis library for geographical mapping, ggplot2 for gender, race, age, and gender distributions, and the VCD library for a mosaic plot across most features. The application design is meant to be highly interactive with as many filterable capabilities as possible; again, with the goal of serving a wealth of vital information to hospitals and research centers for resource allocation. To see the app for yourself, click here!

Analysis & Insights

- QUESTION 1: At what age are people most likely to be diagnosed with Cancer?

- ANSWER 1: Most people are diagnosed with cancer between ages 50 and 85. The peak age group for diagnosis is age 65.

- QUESTION 2: Are there any races that are diagnosed more than others?

- ANSWER 2: Roughly 90% of people in the U.S. diagnosed with Cancer are caucasian, followed by roughly 8% African-American. This is compared to the roughly 77% population of caucasians and 13% of African-Americans living in the U.S.

- QUESTION 3: Are cancer diagnoses increasing year-over-year?

- ANSWER 3: Diagnoses of cancer are rising by roughly 2% each year from 1999 to 2015.  The average annual increase in population in the same period is 0.9%.

- QUESTION 4: Is one gender diagnosed more than the other? Any difference in ages most commonly diagnosed between genders?

- ANSWER 4: There appears to be no difference in diagnosis by gender, nor by distribution of age diagnosed against gender.

- QUESTION 5: Which States have more/less cancer diagnoses?

- ANSWER 5: The amount of cancer diagnoses per state generally tends to follow the amount of population living in that state.  The one notable exception is Texas where there are proportionately fewer diagnoses than population compared to other states.

- QUESTION 6: Are there differences in the age different races are diagnosed?

- ANSWER 6: Caucasian and African-American, while roughly comprising of 98% of diagnosed people in the U.S., tend to be diagnosed at an older age (median age 55) as compared to Asian/Pacific (median age 35), Other (median age 35), and Native Americans (median age 25).

Future Work

  • Optimize Shiny App by reducing duplication in code and consolidating to global.R.
  • Create more interaction between Home page, allowing users to link directly to visualizations from the main page outside of the left menu.
  • Extract statistical inference and statistical hypothesis testing to the Race and Age demographics to validate the significance in Race and Age groups observed in the Analysis section.
  • Expand the scope of the application to include all specific types of Cancer, other conditions and diseases publicly available (via CDC), and all territories globally.
  • Adjust axis labels on Mosaic chart for less clutter. Test accuracy of groupings.  Among findings I'd like to check is that the 90% caucasian. From other analysis does not appear consistent with this chart.
  • Create Reactive Functions that disable filters without underlying data associated to appear.
  • Research and validate accuracy of source (CDC) Data. Coordinate collaborations with CDC to add a visual layer to their medical condition records.

Thank you for reading! If you'd like to see this project on my github, feel free to have a look here. To see the actual R Shiny app, click here.

About Author

Eric Meyers

Eric is a data science leader with a passion for predictive modeling, machine learning, and developing healthy and impactful teams. Seeking a Data Science manager or principal role where thoughtful technical innovation is at the forefront of product...
View all posts by Eric Meyers >

Related Articles

Alumni
Data Scientist at JP Morgan Chase: Elsa Vera Amores

Leave a Comment

Cancel reply

You must be logged in to post a comment.

Google September 29, 2021
Google The time to read or visit the material or websites we've linked to below.
Google March 16, 2021
Google Just beneath, are numerous completely not connected sites to ours, even so, they are certainly really worth going over.
Google March 3, 2021
Google Although internet sites we backlink to below are considerably not connected to ours, we really feel they're in fact worth a go through, so have a look.
CBD For Dogs December 19, 2020
CBD For Dogs [...]below you will come across the link to some web pages that we believe you should visit[...]
Google November 15, 2020
Google We prefer to honor a lot of other net sites around the net, even if they arenย’t linked to us, by linking to them. Under are some webpages worth checking out.
Google November 15, 2020
Google Here is a good Blog You might Uncover Intriguing that we encourage you to visit.
Backlink August 28, 2020
Backlink [...]here are some hyperlinks to web sites that we link to since we believe they may be worth visiting[...]
MKsOrb August 26, 2020
MKsOrb [...]Every when inside a when we pick blogs that we read. Listed beneath would be the most up-to-date sites that we select [...]
OnHax August 19, 2020
OnHax [...]check beneath, are some totally unrelated web sites to ours, however, they are most trustworthy sources that we use[...]
mksorb.com August 5, 2020
mksorb.com [...]always a huge fan of linking to bloggers that I really like but donย’t get a great deal of link really like from[...]
mksorb.com July 30, 2020
mksorb.com [...]check below, are some absolutely unrelated web sites to ours, nevertheless, they are most trustworthy sources that we use[...]
cbd oil for cats July 9, 2020
cbd oil for cats [...]The information talked about inside the write-up are a number of the top accessible [...]

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application