Click on R graph gallery (with code) to open the resource.