Rstudio Homework
1)RStudio Data Analysis – Upload a screen shot of the RStudio commands and result
What proportion of females clap to the left and have never smoked in the dataset? (Use Dataset: dataset_student_survey_data.csv)
2)RStudio Graph Analysis – Upload a screen shot of the RStudio commands and tell the story.
ggplot(dataset, aes(x=price, y=wage, shape=region, col=region)) + facet_wrap(~status) + theme_bw() + geom_point() + geom_smooth(method=”lm”,se=F)
What story is presented in this visualization? (Use dataset_production_of_rice_in_indonesia.csv)
3) RStudio Data Analysis – Upload a screen shot of the RStudio commands and result.
How many non-smoking females eat dinner on Saturday? (Use Dataset: dataset_tipping_data.csv)
4) RStudio Graph Analysis – Upload a screen shot of the RStudio commands and tell the story.
ggplot(dataset, aes(x=price, fill=region)) + theme_bw() + facet_wrap(~status) + geom_histogram(binwidth=5)
What story is presented in this visualization? (Use dataset_production_of_rice_in_indonesia.csv)
5) RStudio Data Analysis – Upload a screen shot of the RStudio commands and result
What percentage of males purchased a 2nd class or 3rd class ticket in the dataset? (Use Dataset: dataset_survival_of_passengers_on_the_titanic.csv)
6) RStudio Data Analysis – Upload a screen shot of the RStudio commands and result
What proportion of species have petal widths greater than 1.0 in the dataset? (Use Dataset: dataset_edgar_anderson_iris_data.csv)
7) RStudio Graph Analysis – Upload a screen shot of the RStudio commands and tell the story.
ggplot(dtd, aes(x=day, y=total_bill, fill=day)) + theme_bw() + facet_wrap(~sex) + geom_boxplot()
What story is presented in this visualization? (Use dataset_tipping_data.csv)
8) RStudio Data Analysis – Upload a screen shot of the RStudio commands and result
How many males under the height of 170 exist in the dataset? (Use Dataset: dataset_self_reports_of_height.csv)
9) RStudio Graph Analysis – Upload a screen shot of the RStudio commands and tell the story.
ggplot(dataset, aes(x=cd, fill=screen)) + facet_wrap(~premium) + theme_bw() + geom_bar(position=”dodge”)
What story is presented in this visualization? (Use dataset_price_personal_computers.csv)
10)ggplot2 – Bar Plot: (Use dataset_price_personal_computers.csv)
Plot the computer speed sold in the computers.
Breakout the cd option based on the computer speed.
Position the computer cd option side by side.
Drilldown the dataset further based on premium.
Label the x-axis.
Label the y-axis.
Give the graph a title.
What story is presented in this visualization? (3 or 4 sentences explaining the data.)
ggplot2 – Histogram: (Use dataset_production_of_rice_in_indonesia.csv)
Plot the distribution of the price of the rice production. (Use a binwidth = 5)
Breakout the land status of ownership.
Drilldown the dataset further based on the region where the rice is produced.
Label the x-axis.
Label the y-axis.
Give the graph a title.
What story is presented in this visualization? (3 or 4 sentences explaining the data.)
ggplot2 – Box Plot: (Use dataset_tipping_data.csv)
Plot the Time vs Total Bill of the meals.
Breakout the sex of the individual.
Drilldown the dataset further based on smoker.
Label the x-axis.
Label the y-axis.
Give the graph a title.
What story is presented in this visualization? (3 or 4 sentences explaining the data.)
ggplot2 – Scatter Plot: (Use dataset_edgar_anderson_iris_data.csv)
Plot the sepal length vs sepal width of the flowers.
Breakout the species of the flowers.
Drilldown the dataset further based on the species.
Label the x-axis.
Label the y-axis.
Give the graph a title.
What story is presented in this visualization? (3 or 4 sentences explaining the data.)
Please put all screen shots in a MS Word (other word processors are fine to use but save it in MS Word format). Don’t upload the screen shots individually in the assignment folder! Submit your assignment on or before the due date.