Question: Consider the ` mtcars ` dataset. Create a graph with all of the following. a . A bar graph with cylinders as a factor on

Consider the `mtcars` dataset. Create a graph with all of the following.
a. A bar graph with cylinders as a factor on the x-axis and the count on the y-axis
b. Make the graph into a stacked bar graph using the `vs` variable to fill in the bars.
c. Change both axis labels to something that makes more sense.
d. Add a meaningful title.
**Extra Point**. Change the title of the legend to say `V Shaped Cylinder`
**Extra Point**. Change the legend labels so 0=`V-shaped` and 1=`Straight`
2. Using the table1 package, create a table that shows descriptive information about the
dep_delay, arr_delay and air_time variables from the FLIGHTS_DT dataset. Split these
descriptive results by the airport (origin). In addition, make sure the table includes an overall
column.
3. Using the `EXPECTED` and `ENROLLED` datasets, create a line graph that includes one line with
the expected enrollment and one line with the actual enrollment.
a. In addition to the lines, create points that represent each enrollment point for both the
expected and enrolled data.
i. The expected enrollment line should be dashed and blue. The expected
enrollment points should be blue.
ii. The actual enrolled line should be solid and red. The actual enrolled points
should be red.
b. Make sure there are meaningful labels and a meaningful title. Make sure all labels are
meaningful and add meaningful title.

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!