Programming Homework Help

Arkansas Baptist College Age of Patien and Maximum Heart Rate Questionnaire

 

I’m studying and need help with a Programming question to help me learn.

1. What is the relationship between `age of patient` (i.e., `age`) and `maximum heart rate` (i.e., `thalach`)?

1. What is the relationship between `serum choloesterol in mg/dl` (i.e, `chol`) and `maximun heart rate achieved` (i.e., `thalach`) by whether `exercise induced angina` (i.e., `exang`)?

1. What is the distribution of patients’  `maximum heart rate` (i.e., `thalach`) across `exercised induced angina` (i.e., `exang`)?and here are codes :for question one :

heart_disease_data %>%

 ggplot(aes(x=age,

            y=thalach )) +

 geom_point()

for question two:

heart_disease_data %>%

 ggplot(aes(x=chol,

            y=thalach,

            color= exang)) +

 geom_point() 

for question three:  

heart_disease_data %>%

 ggplot(aes(x=thalach,

            fill= exang)) +

 geom_bar() 

and you can download data csv from this https://www.kaggle.com/kingabzpro/heart-disease-pa…