Here's how to play all 7 chords in the key of E -- in any position on the fretboard.
Each harmony is formed from the underlying scale of the key. In this case, the E major scale:
And on the guitar, all of these chords follow a predictable (CAGED chord shape) pattern up the fretboard....