This post [1]: Shiny's tabsetPanel not displaying plots in multiple tabs contains a perfect example of what I want to achieve. As I don't want to create the same plot too many times but just once the solution proposed does not work for me.
The user who answered the below question mentions that it is possible to assign the same plot to two different plotOutputs which is exactly what I want to do do.
Could someone please help me figure this out?