Я потратил много времени на его поиск, но не смог найти.Не взорвать меня, если это основной вопрос:)
Я хочу создать точечный график с векторами ниже
> x
[1] "a" "b" "c" "d"
> y
[1] 5 6 3 4
Я использовал xyplot, но он дает ошибки ниже
> xyplot(y~x)
Hit <Return> to see next plot:
Warning messages:
1: In order(as.numeric(x)) : NAs introduced by coercion
2: In diff(as.numeric(x[ord])) : NAs introduced by coercion
3: In function (x, y, type = "p", groups = NULL, pch = if (is.null(groups)) plot.symbol$pch else superpose.symbol$pch, :
NAs introduced by coercion