Anindita Basak shows how to integrate R graphics into Power BI:
If you already have R installed on the same system as PowerBI, you just need to paste the R scripts in the code pen. Otherwise you need to install R in the system where you are using the PowerBI desktop like this:
This step-by-step guide features a lot of images and should be pretty easy for a new user.