The image above was "merged" from six images you can see as thumbnails below.
As with the horizontal panning you have to plan ahead, have a clear understanding of where you start and where you are going to stop. Keep it mind that the Photoshop will struggle with "merging" your series of single images and you may end up cropping the output. So to be safe, shoot wider and provide generous overlaps.