Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 eg if your students id is a id should be
Tasks
Read the data into a data frame named scores.
The data set is composed of 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 A
Submit the script plotR 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 eg 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started