Essentially, the problem that I am experiencing is that the legend overlaps the gnuplot graph that I am trying to plot as illustrated in the following diagram.
With the gnuplot version 5.2 and maybe later, you can use
set key at x, y
where x and y are the values for the x-axis and y-axis respectively
x
y