Lab 1E
Directions: Follow along with the slides and answer the questions in red font in your journal.
food
.food
data and make some new multiple variable plots you haven't created before!sodium
on the y-axis and sugar
on the x-axis.xyplot(____ ~ ____, data = food)
calories
also have more total_fat
? Why do you think that?calories
and total_fat
variables in your code? Does the relationship between the variables change?calories
and total_fat
change when the snack is either Salty
or Sweet
? Write down the code you used to answer this question.groups
argument much like we did for bargraphs (use the search feature in the History pane if you need help).sodium
, sugar
, healthy_level
, salty_sweet
.dotPlot
or histogram
of the calories
variable, but facet the data using:healthy_level + salty_sweet
healthy_level
of a Salty
or Sweet
snack impact the number of calories
in the snack?.cost
more or less than less healthy snacks?cost
of a snack? Describe their relationships.