By taking a closed pattern you can simply repeat it from a different starting point to get a similar result in a different key. Remember, I'm not teaching what notes to select that sound good. What we're showing is that soloing without the benefit of open strings can be relatively simple when you have a reference point to work from. At this point we could continue to develop patterns but you might instead want to build your own or visit the 10 Patterns in B that are available here. Elements of the closed position patterns are in used throughout this page.
Final Thoughts Build some simple patterns over the basic notes of a chord for starters.
Use Diagram 2 to provide some guidance. Using a single reference note with the first finger you can easily build a full scale with a range of all 12 notes of the scale as we did with the scale in B above. Building a solo upon the notes of the chord is a lot more effective and musically pleasant than taking a wild guess that might yield mixed results. That anchor can be a position dot on the fretboard, a chord, a closed scale, or simply by feel. It's not easy at first but be patient.