I now see the problem. I've just noticed that the strings of the guitar are named in reverse order, i.e., from left to right on the chord diagrams, E, B, G, D, A, E, so that all the chord shapes are as if one saw them in a mirror.