Answered step by step
Verified Expert Solution
Link Copied!

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, 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

Students also viewed these Databases questions

Question

Why the negotiable CD market wascreated? AppendixLO1

Answered: 1 week ago