Create histograms of the ptratio in the oklahoma schools

Assignment Help Other Engineering
Reference no: EM131226722

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.

Reference no: EM131226722

Questions Cloud

Net assets of jelly soft manufacturing : Rock Solid Manufacturing, Inc., has acquired the net assets of Jelly Soft Manufacturing, Inc., for $10 million and now needs to address how the acquisition should be recorded on its books for financial reporting purposes and which intangible asset..
Problem regarding the reliability of a firm beta : Identify and analyse the factors that can affect the reliability of a firm's beta. Do you think the recent global financial crisis has had an impact on a firm's beta, its cost of equity and its cost of capital?
How that problem developed or came into existence : Describe background information on how that problem developed or came into existence. Show why this is a societal problem, and provide perspectives from multiple disciplines or populations so that you fully represent.
Option transaction as an alternative to a direct stock : Describe a specific example of how you might advise a client to use an option transaction as an alternative to a direct stock transaction. As part of your example, be sure to explain specific characteristics relative to net worth and risk toleranc..
Create histograms of the ptratio in the oklahoma schools : Create histograms of the PTRatio in the Oklahoma schools. Make sure the layout, labels, and title all match the sample output. Create the first histogram using the default number of breaks
How could management measure the ethical health : How could management measure the ethical health of an organization other than survey questions?
Current role of an hrm professional : Write a paper that compares what you see as the current role of an HRM professional with how the role is expected to evolve in the future. In addition, compare the varying demands made upon HRM professionals throughout time. Note: This discussion ..
What are your variables of interest : In the method section of your paper, you will present the design of your study. The design of your study refers to the plan for actually conducting the research. It specifies where you will conduct observations or an experiment. It also specifies..
Compute the value of acme common stock : Compute the value of Acme Common Stock if the next dividend is expected to be $1.20 per share. Investors require a 9% rate of return on stocks with the same risk as Acme.

Reviews

Write a Review

Other Engineering Questions & Answers

  Write an expression whose value equals the remainder

Assume that n has been declared and initialized as an int. Write an expression whose value equals the remainder of dividing n by 17.

  Find the three poles and estimate the 3-db frequency fh

Associated with each stage is a parasitic input capacitance (to ground) of 10 pF and a arasitic output capacitance (to ground) of 2 pF. Parasitic capacitances of 10 pF and 7 pF also are associated with the signal-source and load connections, respe..

  Three phase synchronous motor

Explain the methods of starting a three phase synchronous motor and the effects of variation of excitation with reference to the 'V' curve charecteristic

  Testing of a new lubricant in cold metal forming

ENGG851 - Assessment - The abstract should be no longer than 200 words. While the abstract is the first activity it should be the very last thing that you write. If you try and write this first you might struggle.

  Topic-sustainable development

You might proceed by asking yourself a number of questions. What were the initial reasons why the term "sustainable development" was coined?

  What is the lowest power

The heating element of an electric cook top has two resistive elements, R1 = 57.6Ω and R2 = 115.2Ω, that can be operated separately, in series, or in parallel from voltages of either 120V or 240V. For the lowest power, R1 is in series with R2, and..

  What is the required model flow rate

What is the required model flow rate? If the head loss in the model is 0.06 m, determine the head loss and energy dissipation in the prototype.

  Review the internet to research the concept of peak oil

Review the internet to research the concept of "peak oil". Based on your research, write a one page technical memo discussing your opinion of whether we have reached peak oil, or whether this is sometime in the future.

  Calculate parasitic capacitances

Calculate parasitic capacitances (Cgd, Cgs, Cdb, Cbs) for transistors at zero bias. For Cdb and Cds consider only the junction and sidewall effects. TABULATE your results for both pMOS and nMOS

  Draw the logic diagram for the hierarchical component

Three instances (copies) of a single hierarchical circuit component made up of two AND gates, an OR gate, and an inverter are to be used. Draw the logic diagram for the hierarchical component and for the overall circuit diagram using a symbol for ..

  Determine the minimum surge tank size

Assignment- Open Channel and Pipeline Flow: Determine the minimum surge tank size (nearest ½ m) to satisfy the max. allowable height. For the case of complete closure (Q changes from 15 + N1 m3/s to Q = 0)

  The significance of a voltage amplifier and its applications

Describe how negative feedback works, and explain some of its advantages.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd