The resistor in question is R2.
The below circuit provides roughly constant current above a certain Vcc.
For R2, I arrived at the value by trial and error by checking simulation outputs.
I would like to make a more precise decision on the value of this resistor. How can I start to to think about doing this?

Here is the current through the LED:
