Presentation is loading. Please wait.

Presentation is loading. Please wait.

R Assignment #4: Making Plots with R (Due – by ) BIOL

Similar presentations


Presentation on theme: "R Assignment #4: Making Plots with R (Due – by ) BIOL"— Presentation transcript:

1 R Assignment #4: Making Plots with R (Due – by email) BIOL 4090 - 6090
David Hyrenbach

2 Tasks For Week 14 Install and explore ggplot2 function
Practice making five types of graphs using the ggplot function Learn how to make more advanced plots with ggplot

3 Assignment for Week 14 Clear Workspace and History.
Install and run the Rcmdr package. Install and run the ggplot2 package. 4. Create figures using imported datasets. 5. me your assignment by Dec 4. (this exercise is worth 2.5 points)

4 Instructions Answer the questions in the spaces provided Save and import the figures you create into ppt; DO NOT take screen shots Once you are done, change the title of this file, by adding your name (e.g., “R_Assignment4_Hyrenbach.ppt”) 4. this file to the instructor at using the following title: “BIOL4090 – 6090: “R Assignment #4”

5 Questions / Answers 1a. Import the dataset “ExamAnxiety.xlsx” and create a simple scatterplot of Exam and Anxiety. Show the points, and add a straight line to the plot. For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command (NOTE: instructions ppt shows all required steps to make this figure) (+0.25):

6 Questions / Answers 1b. Import the dataset “ExamAnxiety.xlsx” and create a grouped scatterplot of Exam and Anxiety, with the male / female data plotted separately. Show the points, and add a straight line to the plot. For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command (NOTE: instructions ppt shows all required steps to make this figure) (+0.25):

7 Questions / Answers 2a. Import the dataset “MusicFestival.xlsx” and create a histogram of the day 1 data using a binwidth of 1 (NOTE: instructions ppt shows all required steps to make this figure) (+0.25):

8 Questions / Answers 2b. Create a histogram of the day 2 data using a binwidth of 1. Make sure you change the figure labels accordingly For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command (+0.25):

9 Questions / Answers 3a. Create a boxplot for the day1 MusicFestival dataset, that separates the data for males / females. For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command (+0.25):

10 Questions / Answers 3b. Create a density plot of the day1 MusicFestival dataset. For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command (+0.25):

11 Questions / Answers 4a. Load the data “ChickFlick.xlsx” and create a bar graph for one independent variable (Film). For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command. Do the means of the two films seem significantly different? State why / why not? (+0.25):

12 Questions / Answers 4b. Load the data “ChickFlick.xlsx” and create a bar graph for one independent variable (Gender). For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command. Do the means of the two genders seem significantly different? State why / why not? (+0.25):

13 Questions / Answers 4c. Using the dataset “ChickFlick.xlsx”, create a bar graph for two independent variables (Gender X Film), so the bar color is applied to “gender”. For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command. Do the means of the two films seem significantly different? State why / why not? (+0.25):

14 Questions / Answers 4d. Using the dataset “ChickFlick.xlsx”, create a bar graph for two independent variables (Film X Gender), so the bar color is applied to “film”. For full credit, paste the figure you created, report the command you used to create this plot and explain all of the arguments used with this command. Do the means of the two films seem significantly different? State why / why not? (+0.25):


Download ppt "R Assignment #4: Making Plots with R (Due – by ) BIOL"

Similar presentations


Ads by Google