 Okay so now we're going to move on to some of the different graphs that we can create within the ggplot package. So far we've been concentrating on these scatter plots but there's a lot more versatility to the ggplot package and so now we're going to introduce some of those other chart plot types that we can create. Okay so we're going to create a new section header to call this one box plot. Okay and as I mentioned all of these ggplot functions are going to have a similar structure. Okay really where we're going to start getting some differences here are in these geometric functions at this last line. So rather than geom point now we're going to just replace this with geom box plot. Okay we're also going to want to use some different variables okay because a box plot is going to you know require it's going to be ideal for mapping different kinds of variables compared to the scatter plot so we're going to want to go ahead and switch out these x and y values for more appropriate variables. But what we're going to use for the x is respondent wall type and for our y value we're going to use room. Okay so respondent wall type is a categorical variable. Rooms is a quantitative variable which is giving it a number. Okay and that creates our box plot over here. Okay so on the x axis we have the four different levels of that variable, burnt bricks, cement, muddab, and sun bricks. And then the rooms will tell you basically the number of rooms in that household. This provides some insight into maybe some of the limitations for these different construction materials. So for instance you kind of have a bit more seem to have more versatility in the number of rooms that you include in your house if you're building with burnt bricks as compared to something like cement. It seems like cement there's not a whole lot of variability in the houses. Again this is just correlation so there this might just be kind of choice or coincidence but does give you some insight into the relationship between those building materials and the number of rooms. You can also combine different graph types one on top of the other. Okay so in this case we're going to borrow our code block from above and we're going to add one more plus sign another geometric function down here. Let's use our jitter plot example from above. Just to save time we'll go ahead and copy all of these arguments for our previous example that extra parentheses. And what we have now is this kind of super imposition of the scatter plot on top of our box plot. Okay so this gives you an idea both of the kind of concentration of those values as well as kind of the range within that inter-cortile range here. Just to give you a few more examples of the types of graphs that you can make within ggplot we can replace box plot with violin. This will create a violin plot this kind of tells you again a little bit more detail about where those values are across its range so whereas the box plot just kind of shows you uniformly the the range that are falling within different quartile values the violin plot is going to tell you at a density even within those different ranges. And of course you can superimpose the jitter plot on top of that as well. So a lot of options here.