implementation of basic lexicon plot funciton