Here is a simple way to make a variable resistor in LTspice.
Right click the resistor you want to be variable and give the value a curly bracket name.
Here I used R for simplicity. So the value of R2 was entered as {R}.
Click on .op (far right, top corner) and enter a step parameter for R.
Here...