Create a new RMarkdown document by selecting File > New File > R Markdown... > Document > HTML > Open This will open the default RMarkdown document that will knit to html, however you can change to PDF, word etc.
Templates
To get the most out of RMarkdown there are a number of various templates to suit whatever document and style you need. Below are some links to get you started.
The following object is masked from 'package:crayon':
%+%
library(readr)# Load datagnatt<-read_csv("gnatt.csv", col_types =cols( end =col_date(format ="%d/%m/%Y"), start =col_date(format ="%d/%m/%Y")))## Set factor level to order the activities on the plotgnatt$chapter<-factor(gnatt$chapter)plot_gnatt<-qplot( ymin =start, ymax =end, x =chapter, colour =activity, geom ="linerange", data =gnatt, size =I(5))+scale_colour_manual(values =c("red", "grey", "purple", "orange", "blue"))+coord_flip()+theme_bw()+theme(panel.grid =element_blank())+xlab("")+ylab("")+ggtitle("Project planning")plot_gnatt