Get startedGet started for free

Graphics and output

1. Graphics and Output

We're coming to the end of this journey and in this last video, we'll wrap up how to set up projects.

2. Project overview 1

In the previous video, I discussed how every project starts with a base directory, that has an informative name. In this case, survival.

3. Project overview 2

Then I added on an input/ director for data files

4. Project overview 3

and an R directory for R code

5. Project overview 4

In this final video, I discuss two further directories. The first is output for generated data files

6. Project overview 5

The second is graphics for generated graphics files

7. The difference

The key idea is that the scripts create the contents of output and graphics. This means in theory we can delete output and graphics and not cry.

8. The graphics/ directory

The graphics/ directory just contains graphics. Typically in my R directory I have file called graphics.R, that would you believe, generates the graphics. Remember to use relative paths!

9. The output/ directory

The output/ directory contains data generated from our R scripts. This could be lists of p-value, or data for the a new analysis. Personally, I don't tend to use this directory, but it depends on your own situation.

10. Let's try it

Right, let's put this info into practice