Directions: Follow along with the slides and answer the questions in red font in your journal.
fooddata and make some new multiple variable plots you haven't created before!
sodiumon the y-axis and
sugaron the x-axis.
xyplot(____ ~ ____, data = food)
caloriesalso have more
total_fat? Why do you think that?
total_fatvariables in your code? Does the relationship between the variables change?
total_fatchange when the snack is either
Sweet? Write down the code you used to answer this question.
groupsargument much like we did for bargraphs (use the search feature in the History pane if you need help).
caloriesvariable, but facet the data using:
healthy_level + salty_sweet
Sweetsnack impact the number of
caloriesin the snack?.
costmore or less than less healthy snacks?
costof a snack? Describe their relationships.