I would like to create a chart where the choice of two data sources makes the difference between the two on the Y-axis.
I wrote this:
ggplot (Values-, aes (x = X, y = (Values $ Y [1] -Values $ Y [2])))
but this (Values $ Y [1] -Values $ Y [2])
makes the difference to me for the first value of the X, but it is the same for all the others.
Where am I wrong?