I want to create a QQ-plot, but I don't want to compare it to a standard normal distribution. I currently have this:
log_amount = runif(100)
  fit = fitdistr(log_amount, "normal") 
  qmy_distribution = function(p) {
      return(qnorm(p, fit$estimate[1], fit$estimate[2]))
  }
  expected = qmy_distribution(ppoints(length(log_amount)))
  qqplot(log_amount, expected, main = title)
  qqline(log_amount, col = 'blue', distribution = qmy_distribution)
I would like to have the confidence intervals which qqPlot from the car package provides, but I can't figure out how to do this. Is there a way to provide my custom quintile function?
