Trying to do an xy scatter plot with the z value being denoted by the color of the xy point.
Data:
1.1, 32.27, 19.4
1.2, 21.34, 18
1.4, 47.45, 19.4
R code:
inp <- scan("beps.txt",list(x=0,y=0,z=0))
plot(inp$x, inp$y,pch=".")
Creates a great scatter plot, but I would like the points to be colored by the Z value.
Here is some reproducible example that uses ggplot2. If I understood you correctly I should do what you want.
In general I strongly recommend ggplot2 for stuff like that. It’s really worth learning a little more about. I am still in the middle of the process and realize how much it pays to put some time into ggplot2. If you do not know the package and the documentation, make sure you check it. The documentation is easy to understand and powerful !