Question: ( 1 0 MARKS ) Using the zagat dataset from the smss package, complete the following tasks: ( Note: you may need to load additional

(10 MARKS) Using the zagat dataset from the smss package, complete the following tasks: (Note: you may need to load additional libraries to answer the questions.) This dataset contains information on 193 ratings of Italian restaurants in Boston, London, and New York. First read about the dataset (using ?? in the R console) then take a look at the data using the str and head functions. (a) Create a box and whisker plot for City against Cost(City should be on the xaxis), and a bar chart displaying City(i.e. it should show the number of restaurants rated per city). Give each graph a title. (b) Display the 2 graphs in one image using R code (i.e. do not just screen grab the 2 images and combine them).(c) Create a parallel co-ordinates plot using the predictor variables Food,Decor,Service, and Cost. The plot should be colour coded by City, and scale your graph using uniminmax.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!