Quoting The Bard is not usually considered plagiarism, since most reasonably educated people recognize the quotation's source without having to be told.
Only the exceedingly ill-bred would confuse one of Hamlet's soliloquies with anything original to M Rapparee.