程序代写代做 graph Quantitative Methods in Language Sciences

Quantitative Methods in Language Sciences
LELA20342 // 2019-2020 // Semester 2 Dr. Wendell Kimper
Assignment #2
Due: Friday, 20 March at 12:00 noon.
In this assignment, you’ll use the techniques for summarising, subsetting, and plotting data we learned in tutorials.
• Import the .csv 􏰋le containing your restaurant data from Assignment 1 into R.
• Make a plot that shows how average word length depends on the restaurant. Make sure that your axis labels are appropriate, and use colours. Report means and standard deviations for word length by restaurant (in a table).
• Pick a speci􏰋c type of dish, e.g. `􏰋sh’ or `vegetarian’. Make a plot that shows how the price of that dish varies depending on the restaurant. Make sure that your axis labels are appropriate, and use colours. Report means and standard deviations for price by restaurant (in a table).
• Using the plot() function, make a plot that shows how the price of a dish depends on the average word length, again making sure your axes are appropriately labelled. (Note: this is an exercise in extending your existing knowledge to new R functions. The plot() function works very similarly to other graphing functions, and should give you a scatterplot if both your variables are numeric/integer vectors.)
• Save your R script as a .R 􏰋le. You’ll need it if you decide to modify your assignment for the 􏰋nal submission.
• Paste all the 􏰋gures and tables listed above into a Word document. Make sure your 􏰋gures and tables are numbered and captioned. Paste the R code you used into the same document (making it clear which code goes with which 􏰋gures) and submit via Turnitin. Note: Word might try to autocorrect your code. Don’t let it do that.
1