I would like to plot a scatterplot of two variables using three columns as reference for the colour of the point.
In this case, each point of the graphic is represented by a single row.
Each row has five attributes: x
, y
, R
, G
and B
.
I created an example of the result I expect using excel, since one can change the colours manually.
This is not an option for me, for I have thousands of samples.
Given the following table:
| x | y | R | G | B |
+---+---+---+---+---+
| 2 | 2 |255|255| 0 |
| 2 | 2 |255|255| 0 |
| 5 | 1 | 0 |255| 0 |
| 4 | 3 | 0 | 0 |255|
| 1 | 5 |255| 0 |255|
I expect to generate this graphic: