You can install the development version of xkcd like so:
echarts4r, a plot is created first by initialization of
x_chart, which is appended by functions such as
x_bar specifying chart type. For example, a line graph of yearly average life expectancy from the
gapminder dataset is created as follows
See Getting Started for more examples.