How to create a timeline of your CV in R?
In this article, I show how to create a timeline of your CV in R. A CV timeline illustrates key information about your education, work experiences and extra activities. The main advantage of CV timelines compared to regular CV is that they make you stand out immediately by being visually appealing and easier to scan. It also allows you to better present your “story” by showing the chronology of your jobs and activities and thus explain how you got to where you are today. (It can also be part of your portfolio to show your R skills.)
We show below how to create such CV in R with a minimal reproducible example. Feel free to use the code and adapt it to you. For a more complete example (together with the code) you can check my own CV timeline here.
Minimal reproducible example
Here is the code and the result of a minimal reproducible example:
How to personalize it
If you want to edit the example with your own academic, extra and work experiences you basically just have to edit the dataframe called
cv in the code above. Each row of the dataset
cv is a different academic program, job or activity. Rows should include:
- the name of the academic program, job title or activity
- the name of the university, school, company or workplace
- the category: academic, work experience or extra
- the starting date (dates must be in format
- the ending date. If the role has not yet ended, type
todayinstead of the date. By using
todayyour CV timeline will automatically adapt to today’s date
Add or remove a row in the dataframe if you want to add or remove a role. Indicate
NA if you do not want to specify any workplace (as it has been done for
Extra3). Last, do not forget to replace my name with yours for the subtitle of the timeline at the end of the code.
Experienced R users may wish to edit the
plot_timeline2 function to their needs. However, if you are happy with the template and design of the example, you only have to change things mentioned above.
Instead of editing the code according to your roles directly in the script, you can also create an Excel file with the required data (job title, workplace, type, start date, end date) and then import it into R. Editing the Excel file is easier and less prone to coding errors. Moreover, if you have a long career, the code may become long while if you import the Excel file, it will always stay short and concise.
Thanks for reading. I hope this article helped you to create a timeline of your CV in R. If you would like to see a more complete and live example, see my timeline CV.
As always, if you have a question or a suggestion related to the topic covered in this article, please add it as a comment so other readers can benefit from the discussion. If you find a mistake or bug, you can inform me by raising an issue on GitHub. For all other requests, you can contact me here.
Get updates every time a new article is published by subscribing to this blog.
A special thanks to Bernardo Lares for providing the first version of the code and Prof. Job N Nmadu for the suggestion about creating the file that holds the data.