legend.position: automatically find an optimal position a plot legend based on point counts in each plot corner
Description
This function assesses four corners of an x vs y plot to find the one with the fewest points.
It does so by iterating counting from outward to the middle, performing a sparseness-weighted average across corners.