R is great for graphics although sometimes it can be really tricky to replicate other software charts. Take for example some of the graphics displayed with google charts such as the line chart displayed below.
This google chart took me a dozen of clicks and a couple of minutes to create it. Honestly, it’s not that bad at all. I bet we could also create something similar in excel. However, if we want to produce the same graphic in R we’re going to need a good amount of patience and some guide to get the right color palette (I used the following website to get some colors color hex. So, let me show you how to mimic the google line chart with R. I guarantee you it is possible.
Code in R
Once we’ve defined the toy data, we just need to specify a layout and then the plot: