Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Other Engineering Expert

For the scripts created below. The entire console needs to be displayed. So the graphics and the script can be seen.

1. At the top of your script, include housekeeping steps to first list the contents of the workspace and then clear it out.

2. Load the HW04 workspace that you downloaded from eCampus for the previous assignments. You may use the file menu on the R console to browse for and load the workspace. When this is completed, copy the line of code from the console window and paste it into your script so you can load the workspace automatically the next time you want to run the script. After loading the workspace, include a step that lists in the console the contents of the workspace again to confirm the desired data file has been loaded.

3. Include a statement that will cause R to send all of the graphics in this assignment directly to the PDF file that you will be posting on Web Assign. NOTE: You may want to wait until you have all of your graphics working properly before including this step so you can see the graphics in the console while you are working on them.

4. Create histograms of the PTRatio in the Oklahoma schools. Make sure the layout, labels, and title all match the sample output.

a. Create the first histogram using the default number of breaks.

b. Create a vector that can be used to extend the length of the X axis and force breaks every 5 pupils/teacher. You may find it helpful to use the statistics on the PT Ratio column to determine how far your sequence should go.

c. Create a new histogram with break points at 5 pupils/teacher.

5. Add a maroon line to the graph that shows the normal distribution density of the PTRatio numbers. Feel free to use separate lines of code as necessary to create the vectors required for this step.

6. Draw a yellow vertical line on the previous histogram at the average PTRatio. Use a function to determine the position of the line instead of hard coding in the mean value. Use a value from the color palette to specify the color instead of using the color name.

7. Create a new plot showing the number of teachers compared to the Pupil Teacher Ratio (PTRatio). Use the plot character shown in the sample output on eCampus. The color of the plot character is purple. Force the x axis to extend to 140.

8. Add a colored fit line to the plot. Use a hex value to mix a color for the line that is FF parts Red, 99 parts Green and no Blue. In the console, show the summary statistics for the model that created the fit line.

9. Imbed the date and time of creation near the upper right hand corner of the graph area. The coordinates of the time stamp location need only be close to the ones used for the sample output. This time stamp must be based on system time so that it updates whenever your code is run.

10. Create a boxplot of the number of students in each grade (Columns Grade7 through Grade12). Make sure the labels, etc. match the posted output. The inside of the boxes is light green.

11. Add diamonds that can be colored and filled that represent the average number of students in each grade from Tulsa County. You may create the vector of averages first to simplify the function that is used to plot the diamonds. The background of the diamonds is dark green and the border is red. Make the size of the diamonds larger than the default similar to what is shown in the sample output. (TIP: Do not over-complicate the plotting of the diamonds. You can plot a vector without supplying the x component of the points if the vector labels match the data used to create the original graph as it does in this case.) You may find it helpful to consult the R help on points in order to find out which plot character to use and how to specify the background color.

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M91982638

Have any Question?


Related Questions in Other Engineering

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

Q 1a discontinuity is found fully developed from the toe to

Q. 1 A discontinuity is found fully developed from the toe to the bench surface on a 15 m high slope, slope angle 65°. The discontinuity (frictional angle 32° and cohesion 20 kN/m2) is planar and its strike is parallel t ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

Assessment practical reportproduce a short technical report

Assessment: Practical Report Produce a short technical report in a form consistent with proteomic journals covering the techniques, results and interpretation of your proteomics experiment in the practical classes. The r ...

This is your second design assignment this assignment

This is your second design assignment. This assignment requires you to design a complex state machine. You are designing a digital alarm clock. There are various designs you can attempt. More complex designs are worth mo ...

Assignment -problem 1 - given is the lcc difference

Assignment - Problem 1 - Given is the LCC difference equation that represents some LTI system: y(n) - ¾y(n-1) - ¼y(n-2) = x(n) + x(n-1)   a) Find the impulse response of the system (solve the LCCDE). b) Draw a block diag ...

Part 1configure verify and troubleshoot wan links and ip

Part 1 Configure, verify and troubleshoot WAN links and IP services Answer to all questions below: 1. What is the name of the Safe Work Australia code of practise that provides guidance on how to manage the risks of elec ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

1 online discussion forum - post your proposed topic and

1. Online Discussion forum - Post your proposed topic and chosen data set as well as a short plan for the project. This is required for approval of the topic. As discussed, students must select unique topics, therefore i ...

Introduction to engineering design assignment -

Introduction to Engineering Design Assignment - Drafting Question 1 - Field notes and traverse drawing may be an outdated form of keeping and presenting information on the position of features on a site. Modern electroni ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As