This section describes the creation of probability plots in R that can be used for didactic purposes and, predominantly, for the purpose of data analysis. The following functions are available for each distribution of probability plots in the format specified:
Name |
Description |
dnorm() |
Density or probability function |
pnorm() |
Cumulative density function |
qnorm() |
Quantile function |
Rnorm() |
Random deviates |
We will be creating probability plots for the bank dataset with reference to the age and balance parameters, which are regarded as the crucial parameters in establishing loan eligibility using the following steps:
- Include the library within the R workspace. This is considered a mandatory step:
> library(ggplot2)
Attaching package: 'ggplot2'
The following object is masked _by_ '.GlobalEnv':
mpg
Warning message...