I am trying to make a scatter plot which uses numbers for each point on the graph, rather than black dots. I can do this for numbers 9 and under, but anything 10 and above is represented by 1 on the resulting plot. The numbers represent individual subjects, and I have 13 of them, with a number of data points from each individual.
I am using the plot
function for this as I have worked out how to do all the other things I need with that so I am reluctant to change to another plot type/command.
Sample code:
plot(dif ~ mean, pch=as.character(Subject.Number), data = Cov5.1)
But pch=as.character
only works for single digit numbers.
I have seen solutions on here that talk about using text or labels but for whatever I cannot get either of those to work.
Here is one previous question, but the answer doesn't work for me: R- plot numbers instead of points
How can I create a scatter plot which uses numbers instead of dots?