alperyilmaz / dav-exercises

Exercise questions submitted by Data Analysis and Visualization with R course students at YTU
GNU General Public License v3.0
1 stars 2 forks source link

Chron's Disease visualization #95

Open kubra41 opened 6 years ago

kubra41 commented 6 years ago

Inflammatory intestinal diseases are chronic diseases that sometimes result with inflammation and cause a damage to anatomy of intestines.Here a dataset is prepared from a study of the adverse events of a drug on 117 patients affected by Crohn's disease (a chronic inflammatory disease of the intestines).Dataset is consisting of 117 observations on the following 9 variables.(To obtain more information about dataset please use robustbase::ChronD)

Question

According to CrohnD dataset of package robustbase please apply these 2 questions for desired parameters. a) Firstly,draw a ggplot graph for each 1.BMI (Body-mass index)-age values 2.treat-age values 3.treat-BMI values b) Secondly,please interpret graph3 very shortly. One of graph example ; 1

Please do not forget converting of age and treatment to factor while you are drawing.
In the graph2 and  graph3,please use "jitter" for point positions.
Also the graphs may be very similar but the interpretations of each graph will be different.
link of data is: https://raw.githubusercontent.com/vincentarelbundock/Rdatasets/master/csv/robustbase/CrohnD.csv
library(dplyr)
library(readr)
library(ggplot2)

CrohnD<-read_csv("https://raw.githubusercontent.com/vincentarelbundock/Rdatasets/master/csv/robustbase/CrohnD.csv")
CrohnD
graph1<-ggplot(CrohnD,aes(BMI,age,col=as.factor(age)))+
  geom_point()
graph1

graph2<-CrohnD%>%
  ggplot(aes(treat,age,col=as.factor(treat)))+geom_point(position="jitter")
graph2

g3<- CrohnD %>%
ggplot(aes(treat,BMI,col=as.factor(treat)))+geom_point(position="jitter")
g3
#According to graph3,we can see when the BMI is increasing , placebo using in the treatment will be decreased because their effectiveness is less than other treatment types.Also drug1 (d1) is the most active drug in treatment of chronic inflammatory disease.

Originality

Please mark relevant information with x, (ex. [x])

Is this question

If you select Inspired or Paraphrased please provide the links in markdown format ( [link](http://example.com) ). Please provide all relevant links. You can refer to DataCamp course pages if you're inspired by them.

Difficulty Level

According to you, what is the level of difficulty of the question (note: this can be modified by instructor after submission)

Tags (optional)

Please provide comma separated list of dplyr verbs (e.g. summarize, left join) or concepts (e.g. text mining) that you think are relevant with question

Before submitting