Session Ready
Exercise

Creating your first barplot

Now that you have calculated the relevant frequencies in the previous exercise, you can represent them graphically. A barplot is a very appropriate type of graph for this task.

Making a barplot is easy: you use the function barplot(). This function requires you to put the table inside the barplot() command.

Instructions
100 XP

Draw the barplot with the table with the categorical data of smoke100 as input. (You can do this in one line by nesting table() inside barplot()!)