The first argument of ggplot() is the dataset to use in the graph. ![]() ggplot() creates a coordinate system that you can add layers to. With ggplot2, you begin a plot with the function ggplot(). Does this confirm or refute your hypothesis about fuel efficiency and engine size? ![]() In other words, cars with big engines use more fuel. ![]() The plot shows a negative relationship between engine size ( displ) and fuel efficiency ( hwy).
0 Comments
Leave a Reply. |