Function for plotting view 2 on page 1
Added boiler plate for loading results

Loading the results and generating the needed data.frames takes a lot of
time. It is therefore placed outside the shinyServer() function to
execute it only once (first time the app is executed). Makes it much
faster for the users.