Is there a method or package in R to generate network or perform network analysis using R

My tutorial appears to be a perfect fit:
https://www.biostars.org/p/285296/

If you already have your own data matrix, then start from *Step 2*

Kevin