I know this has been discussed already, but the answers I found do not solved my issue.
Here the code
R_code <- plot(CHD~genotype, data=peptide)
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
3: In min(x) : no non-missing arguments to min; returning Inf
4: In max(x) : no non-missing arguments to max; returning -Inf
5: In min(x) : no non-missing arguments to min; returning Inf
6: In max(x) : no non-missing arguments to max; returning -Inf
"CHD" and "genotype" are categorical variables. However, even when I try to run the same function with numerical variables (from another dataset) I get the same error message.
I have loaded the datased from a .csv
The only thing that these datasets have in commond is that they all come from csv files, but I can't figure out what is the problem and how I can fix it.
Any help is really appreciated.