Essentially I am looking for a way to create a similar plot to the top one in this link, the line plot with varying line thickness: https://www.informationisbeautifulawards.com/showcase/2518-the-safest-cars-of-the-last-eleven-years
Question 1: Does this kind of plot have a particular name, or is it just a version of a line plot?
Question 2: Does anyone know if and how this kind of plot can be created using ggplot2 or D3.js? I am a bit of a newbie in both so any links to helpful resources would be greatly appreciated!
I have been searching online for quite some time to try and figure this out by myself, but haven't found a solution yet. My attempts so far has been to use geom_line and geom_smooth in ggplot2 as follows:
ggplot(data.df, aes(x=time, y=rank)) + geom_line(group = group, colour = group, size = value) + geom_smooth(aes(x = timer, y = rank, group = group, size = value), method = "loess")
Though this doesn't give me the result I am looking for. Could someone please point me in the right direction here?