Write an r function that can be used to produce graph

Assignment Help Programming Languages
Reference no: EM13290210

1. The graph on the right below is reproduced from a book on statistical graphics written by a group of Swedish Government statisticians.

1267_Write an R function.png

Write an R function that can be used to produce this kind of graph. (The function needs to be general purpose, but you can show that it works on this particular data set.)

It is important that you make the function exible by providing optional arguments that control how the function behaves. Labelling and colour are obvious optional arguments. (Don't try to provide every kind of capability. Concentrate on implementing a few options well.)

One of the most important parts of this assignment is the presentation of the code. Be sure that you read what is expected on the class website.

Hints

(a) The data for the example is on the class website (look under the Assignments link).

(b) The graph can be produced using basic R graphics, but a version done using layout provides more control.

(c) You may nd that the order function is useful when reordering the data.


Attachment:- assn2.txt

Reference no: EM13290210

Questions Cloud

How much can the developer pay for the tract of land : Based on current absorption rates, one-fifth will be sold each year. How much can the developer pay for the tract of land?
Compute the charge per unit area on the plastic sheet : A 17.0-g piece of Styrofoam carries a net charge of -0.75 µC and is suspended in equilibrium above the center of a large, compute the charge per unit area on the plastic sheet
Explain and complete ionic equations and net ionic equations : Write balanced molecular equations, complete ionic equations, and net ionic equations for the following reactions. Write "NR" if there is no reaction. All reactants are aqueous solutions.
Determine the power factor of the load and the line current : Using 2 wattmeters as a method of power measurement,wattmeter #1 reads 400W and wattmeter #2 reads 300W. The load isknown to be inductive and fed from a 208/120V grounded-wye 3-phase4-wire system. Determine the power factor of the load and the lin..
Write an r function that can be used to produce graph : Write an R function that can be used to produce this kind of graph - It is important that you make the function exible by providing optional arguments that control how the function behaves.
What is the effective annual cost of credit : Shortly after signing the agreement Stuart needed 240000 to pay off a note that was due. It borrowed the 240000 from the bank by drawing a line of credit. What is the effective annual cost of credit?
Determine power factor of total load connected to the bus : A single phase 4,800
Describe oxidation-reduction reactions : Identify which of the following are oxidation-reduction reactions, and if they are, identify the oxidizing agent, the reducing agent, the substance being oxidized, and the substance being reduced.
What will be the projected balance in retained earnings : If sales are expected to increase by 25% next year, what will be the projected balance in retained earnings using the percent of sales method?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write program using to take input two integers by while loop

Write a program which uses while loops to perform following steps: Prompts user to input two integers: firstNum and secondNum. (firstNum must be less than secondNum).

  Recursive method to search a string for a byrd

Write a recursive method that searches a string for a Byrd. A Byrd has the following properties. Its first character is an 'A'. If it is a two character Byrd then its second and last character is an 'H'.

  Program which accepts candy name-price per pound

A program which accepts the candy name (for example, "chocolate-covered cherries"), price per pound, and number of pounds sol in average month, and displays item's data only if it is best-selling item.

  Program to input name-weight and price of item

The program must input name and price of item and its weight in pounds and ounces. Then it must determine and display unit price (the price per ounce) of the item.

  Write pseudocode for determining grade of student

Write a pseudocode for determining the grade of a student given his/her total score. The program should display a grade of A if the score is above 85.

  Program to retrieve records based on last name-first name

Customer service representatives wish to be able to retrieve records based on Last Name + First Name, Product Number, or State fields. Write down steps involved in your analysis of this problem?

  Program to display all products and ask user to select

Write a program which displays all products you have and ask user to select, for instance 1 for Optical Mouse. Show the price and ask user for quantity. Compute the amount.

  One-dimensional as array of counters to solve problem

Write program which determines how many salespeople earned salaries in each of following ranges. Use the one-dimensional as the array of counters in solving this problem

  Arithmetic and application of summaries

Write some R code that carries out computation, but do it with a single R expression that contains no commas (,) and no braces ({}).

  Create program to produce a summary of amounts due

Create a program that will produce a summary of the amounts due for Pat's Auto Repair Shop. Display a splash screen first, then display the Job Information Form.

  Write a bash shell script prompt user to enter first name

Write a Bash shell script named phone.bsh that prompts the user the to enter first or last or any portion of person's name, so that can be found the appropriate entry in the phone directory file.

  Program to match exam score to a letter grade

Create algorithm which will prompt the operator for student's serial number and student's exam score out of 100. Your program is then to match exam score to a letter grade.

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