In fact, it is Shakespeare who gives us the map of the mind. It is Shakespeare who invents Freudian Psychology. Freud finds ways of translating it into supposedly analytical vocabulary.
"Beyond a Common Joy: An Introduction to Shakespearean Comedy". Book by Paul A. Olson, 2008.