How do I add some of my custom post types to my main blog page?

I have several custom post types. I want some of them to appear on a page set up with the blog template.

I'd like to add the necessary php in a plugin I've created, rather than functions.php.

Could you please tell me what code I'd need to do this?

I've already added the custom post types to the main feed.

Thank you!

Laura