The most used plotting function in r programming is the plot function. You can easily add the main title and axis labels with arguments to the p…