Professional Documents
Culture Documents
Module 1
Submitted By:
Rathin Kukreja
Project Aim:
3. Graphical exploration
4. Descriptive statistics
> cardio_data_set<-read.csv("CardioGoodFitness.csv")
> cardio_data_set
> dim(cardio_data_set)
[1] 180 9
> summary(cardio_data_set)
> str(cardio_data_set)
Panelling Graphics
> par (mfrow=c(3,3))
> hist(cardio_data_set$Age, main="Age Distribution", xlab="Age", ylab="Fre
quency", col="blue")
> hist(cardio_data_set$Education, main="Education", xlab="Education", ylab
="Frequency", col="blue")
> hist(cardio_data_set$Usage, main="Usage", xlab="Usage", ylab="Frequency"
, col="blue")
> boxplot(cardio_data_set$Age,horizontal=TRUE, main="Age Distribution", xl
ab="Age", ylab="Frequency", col="red")
> boxplot(cardio_data_set$Education,horizontal=TRUE, main="Education", xla
b="Education", ylab="Frequency", col="red")
> boxplot(cardio_data_set$Usage,horizontal=TRUE, main="Usage", xlab="Usage
", ylab="Frequency", col="red")
It is clear from the below graphs majority Age group using cardio products is between 20-25 years
and education level between 14-16.
As evident from the below graphs that majority people using cardio fitness products have income
between 40 K units to 60K units.