Question: Preparation Create a script to put the code you will use to complete this practice ( name it plot.R ) . It is always a

Preparation
Create a script to put the code you will use to complete this practice (name it plot.R). It is always a good idea to include some comments in the beginning explaining what the script is about, the author and the date.
Create an object named id and assign it the number in your student id, e.g., if your students id is a12345, id should be 12345.
Tasks
Read the data into a data frame named scores.
The data set is composed of 2 variables: id and score, containing the scores for a given assignment for a group of students.
Create an object, m, containing the median of the scores.
Try to reproduce the attached plot as close as possible. The dot and dash line must be positioned at the median. You must submit a PDF file using paper size A5.
Submit the script (plot.R) and the PDF file with the plot.
Recomendations and common mistakes
Always follow the given instructions closely. If you have any question you should ask the teacher.
You must use the specified object names. Objects with a name other than those specified will be ignored and your score will be penalized. The same applies for file names.
If the code need to load data files (e.g., a CSV file), the file should be read from the current working directory e should have the original name.
Any attempt to load or use additional packages will probably fail and be marked as an error.
Before submission, the code should be tested on an empty environment (with source), to verify that it runs without errors. Note that the existence of an error can invalidate all of the code that follows.
 Preparation Create a script to put the code you will use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!