support@w4writers.com +44 7743 307695
Oct 20, 2023

Question: For the mpg dataset in the ggplot2 package, perform the following tasks: (a) Create a Double Decker plot, displaying "drv" as a function of "class" (class should be on the x-axis). Make sure you colour the "drv" variable so that each level is a different colour. (b) For suv class cars, which type of drive train is the least common? (c) For midsize class cars, which type of drive train is the most common? (d) Using ggplot make a bar chart (geom bar) displaying "class". Colour ("fill") the "class" variable with respect to the "drv" variable.

Recent Post

Order this Assignment now

Total: GBP120

fables template