如何使用 R 中散点图的绘图点符号值

How can I use values for the plot point symbols for a scatter plot in R

我过去使用过 ggplot2,但我对这个感到难过。我想创建一个散点图并将列中的值用作点符号而不是标准的 ggplot 符号。有人做过吗?

谢谢。

像这样?

a <- data.frame(X = runif(n = 10),
                Y = runif(n = 10), 
                VAL = 1:10)

library(ggplot2)


ggplot(a, aes(x = X, y = Y))+geom_text(aes(label = VAL))