get_local_plots function

Internal function for calculating local plots for all observations