how to clear the previous charts in reactive plots

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