If you want to use a function from car
package, just load that package. Why do you use so many library calls?
Without having access to your dataset, it is not possible for me to say what's wrong, but probably qqPlot
expects "norm"
instead of "normal"
. I don't use car
package for Q-Q plot, so that's may not be the case, but that's what I understood from the documentation. Have you tried that? Does that also lead to same error?
There's a function qqnorm
in stats
. What happens if you use that?
If neither of the above suggestions work, can you please provide a REPRoducible EXample of your problem? It provides more specifics of your problem, like what were your exact attempts, what are the errors you received, etc., and hence it helps others to help you.
If you don't know how to make a reprex, take a look at this thread.
Please remember to include the library calls, and share the dataset you are using in a copy-paste friendly format (use dput
or datapasta::df_paste
).