Defoes version was a novel, though written in the form of a diary (it may have been based on the diary of his uncle apparently) so which bits are accurate and which are inventions of the author are tricky to determine.
https://goldin.shinyapps.io/Search_Pepys/
(enter plague as keyword, click on the tab marked histogram, or browse the entries)