first let's say I have a vector:
a <- c(1, 4, 5, 10)
The above are the values for the x-axis
and a matrix
b <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12),nrow=3,ncol=4)
b
[,1] [,2] [,3] [,4]
[1,] 1 4 7 10
[2,] 2 5 8 11
[3,] 3 6 9 12
As you see the x value for the first column is 1, for the second it is 4 aso, and each x value has three y values.
How do I use geom_plot() + geom_point() to plot all of these points in a single graph?


