Familiarize yourself with probabilistic graphical models through real-world problems and illustrative code examples in R