If you are in lowest gear and your cadence is starting to flag, then standing is a good way to spin up. I find it easier to maintian a high cadence than a slower one, but on steep hills I cant accelerate in the saddle.
Mixing the two styles is a useful technique, esp on switchbacks.