A normal probability plot is a graphical representation of the data. A normal probability plot is used to check if the given data set is normally distributed or not. It is used to compare a data set with the normal distribution. If a given data set is normally distributed then it will reside in a shape like a straight line.
- Install the following necessary libraries by pasting them in r console
- Create a random data set with a different mean and standard deviation that you want to plot.
- Plotting data using stat_qq_point() method.
- Plotting data points with line using stat_qq_line() function.
Given below is a proper implementation using the above approach
Example 1: Plotting data using stat_qq_point() method.
Example 2: Plotting data points with line using stat_qq_line() function.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.