r programming language:wow example using ggplot graphics for data presentation



3
4504

We begin by installing ggplot2 and then what we can do with it applying it to mtcars, one of the pre-installed datasets that come with r. We see that we are not limited to just assigning x and y to variables in our data BUT can also set the colour and size to other fields which gives us far greater flexibility? This works particularly well with tidy data of the kind we produced using tidyr and dplyr for example. That way we can assign an attribute to each column. We look at some of the options that we have though there are many more since we mainly wanted to introduce the idea that we have more options. Warning cramming as much data as we can onto one plot is not going to be the clearest. Here just wanted to introduce the wow, the things that we can do with r which are just way better than what had before!

Published by: Quant Channel Published at: 7 years ago Category: آموزشی