The resistor (or pot) is to adjust the display contrast. Once you set it with a potentiometer, you can remove the pot and put in a fixed resistor instead.
And how would you do that? All of my potentiometers have three terminals but my resistors have only two.
Don