 Hi everyone and welcome back to the OSDC mini series and reproducible research. Today we're going to pick up where we left off with the introduction to art and get into some data visualization. Because this lesson picks up where the last one left off we're not going to cover the setup and installation sections of the lesson. We're basically going to jump straight into the creation of the new project setting up our working directory and then jumping straight into the code for creating this data visualizations. If you need a refresher on some of that previous material, we just like to refer you to the introduction to our to some of those early segments. There you can find some more in depth information about installation of packages, setting up your working directory and that sort of thing. And then once you pick up with on that material, you can just jump back over to this current workshop in order to just start right with the data visualization. So by this time this screen should look familiar to you we're just in the R studio environment. And the first thing that we're going to do, as in the previous case is create a new project. If you are working from your existing projects that you started for the introduction to our workshop. That's fine as well. But we're going to go ahead and treat this one as a standalone project and just create everything from scratch. So as in the previous case we're going to start with this new project wizard. Again, I access this just by navigating to file and choosing new project. I'm going to first click on new directory. And then new project. And then I'm going to call this one data is with our with hyphens in the middle. So go ahead and create the project. Okay, so you can see here now that we've got our project saved in our working directory. Again, if you want to confirm the location of your working directory, you can use the get wd function. When you run that, it should tell you the default location of that of that project in my case it's the users folder on my C drive. And as in the previous case we're going to start by setting up our working directory with the required folders. If you remember from the previous case, we're going to use the dur dot create function to create these folders. Beginning with data in quotation marks. When you run this again you should see these folders appearing over here in your folder structure. Do the same thing again for data output finally for fig or figure output sorry to create function. And once you've got all these created that's everything we need in terms of setting up our working directory. We're actually going to just go ahead and import the data set that we created in our previous exercise. And we're going to store that in our data output folder and that's going to become the data set that we use for the purposes of this workshop. Another thing that we want to do in this screen before creating our script file is just load the tidy verse package which contains ggplot and ggplot is the the package that contains all the data visualization tools that we're going to be using here. You could also import ggplot to as its own standalone library but we're going to do it as part of the tidy verse package, because there are some additional functions that we want to import from that package. So if you haven't already, you're going to need to run the install packages function with tidy verse. So if you're starting this project from scratch for instance if this is the first workshop you're you're completing with us, then you're going to want to run this step. If you've already done the install for the previous workshop, then you can skip this step. So when you run this, you'll see some processing some text here on the background depending on if you've installed this before or what kind of condition your your hard drive is in. This might take longer or not so long depending on what your systems like. Once that's run, you're going to want to use the library function. And remember library just loads that package. So the installation and the loading are separate and you need to do both. But whenever you create a new session, you're only going to need to rerun the library function just to load that that package. Okay, so now that tidy verse is loaded, we're good to go we can go ahead and now have access to all the tools that we need for this lesson so we'll go ahead and get started. So with that out of the way, let's go back up to file and choose new file and scroll over here to our script. When you do that you're going to see this new script file appear again in your upper left corner. It's untitled because we haven't saved it yet. So the first thing that we want to want to do is go ahead and save this. And because this is a different file than our actual project file, which is right here we can give it the same name without there being any kind of conflicts. So we're going to call this one also data is with our go ahead and save that our project folder. So you see that script file appear here in your folder structure.