Problems with Analyzing Data with "qqplot"

I've installed the following packages:

library(tidyr)
library(plyr)
library(dplyr)
library(tidyselect)
library(tidyverse)
library(ggplot2)
library(readxl)
library(readr)
library(lubridate)
library(shiny)
library(RColorBrewer)
library(rmarkdown)
library(car)

I would like to analyze if i have a normal distribution or a log distribution. There for I would like to use the qqplot:

qqPlot(df$column, "normal")

But I receive the following error:

Error in plot.window(...) : endliche 'ylim' Werte nötig
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf

Could you help me?

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).

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.