This is cross-posted on SO https://stackoverflow.com/questions/58974165/render-the-multiple-chart-on-same-plot-in-r-and-shiny