You don't tell us what package scatterplotMatrix
is in.
If it is the one in the car
package then it looks like the col
argument will take 3 colors with the first 2 specifying the colors for lines and the 3rd for the points. So if you change your call to have a vector with 3 colors (with the 3rd being the value that you want the points to be) then it should work.
If a different function is being used then you need to tell us more.
Here is a quick example (since we don't have your data):
scatterplotMatrix( ~Sepal.Width+Sepal.Length+Petal.Width+Petal.Length,
data=iris, col=c('purple','blue','black') )
The character strings that I used for colors can be replaced with calls to rgb
.