I want to be able to do qqplots against theoretical quantiles. I already know qqnorm()
does that for the normal distribution, but that's a pretty a limited tool to me. Also, I noticed that some people simulate random processes from a given distribution and use it to compare to sample data, which is not entirely rigorous because it depends on the method of simulation. So my example would be to compare sample data to geometric distribution:
#sample data
var=rgeom(prob=0.3, n=100)
#QQplot against a theoretical geometric distribution with prob=0.5