This function automatically scans through each variable and creates normal QQ plot also adds a line to a normal quantile-quantile plot.
ExpOutQQ(data,nlim=NULL,fname=NULL,Page=NULL,sample=NULL)
Input dataframe or data.table
numeric variable limit
output file name. Output will be generated in PDF format
output pattern. if Page=c(3,2), It will generate 6 plots with 3 rows and 2 columns
random number of plots
Normal quantile-quantile plot
geom_qq
# NOT RUN { CData = ISLR::Carseats ExpOutQQ(CData,nlim=10,fname=NULL,Page=c(2,2),sample=4) # }
Run the code above in your browser using DataLab