There are multiple resources, including online material and books, to help you become acquainted with R, RStudio, and phylogenetics in R.
R programming:
Literate programming and graphics:
RStudio:
Phylogenetics: