0

I've used ggplot2 in the past, but I'm stumped on this one. I'd like to create a scatter plot and use the values in a column as point symbols rather than the standard ggplot symbols. Has anyone done this before?

Thanks.

Charles Knell
  • 117
  • 1
  • 9
  • When asking for help, you should include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Feb 16 '18 at 19:28

1 Answers1

3

Like this?

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))
Balter
  • 1,085
  • 6
  • 12