Here are two articles you might read if you’re interested in learning more about the relationship between plot and Freud’s model of the psyche. Both articles can be accessed for free through the library website.
Here is the citation for Peter Brooks’s famous article, which I have discussed a few times (it is also republished in his influential book, Reading for the Plot: Brooks, Peter. “Freud’s Masterplot.”Yale French Studies 55/56 (1977): 280-300. The paper is rather technical and dense, but it’s extremely well argued and quite persuasive.
I haven’t read this paper yet, but it looks fascinating, not least because it is written by a neurobiologist (it’s also short!):
Yang, Amy. “Psychoanalysis and Detective Fiction: a tale of Freud and criminal storytelling.” Perspectives in Biology and Medicine 53. 4 (2010): 596-604.