I have a grid of equi-spaced points (13*8). I want to plot some specific points in that grid in a different color. The coordinates for those specific points are stored in a different matrix. Can someone please help me out with this?
Here's the code I am using to generate the grid.
ggplot(data=a,aes(x=X,y=Y))+geom_point()
'a' basically contains the coordinates for the points plotted in the grid. Those points are supposed to mimic the locations of a bolt on a plate.
Here's the matrix that contains the coordinates for the points to be highlighted
sigbolts
x.c y.c
[1,] 4 4
[2,] 4 5
[3,] 3 6
[4,] 4 6
[5,] 5 6
[6,] 3 7
[7,] 4 7
[8,] 5 7
[9,] 3 8
[10,] 4 8
[11,] 5 8
[12,] 8 8
[13,] 4 9
[14,] 4 10
[15,] 6 13