I have my data which is shown as below:
X Y
1.92 0.79
6.80 0.55
4.53 -2.08
-1.13 -5.69
-5.60 -6.21
2.87 7.34
6.93 1.68
I want to plot a regular scatter plot with different colors for positive points and negative points. How do I do this using ggplot ? Thanks
EDIT: This is what I attempted so far:
dat_input<-read.table("test.txt", header=TRUE)
shoot_input<-gather(dat_input, factor_key = TRUE)
ggplot(dat_input, aes(x=shoot_input[1:7,2], y= shoot_input[8:14,2], color=key)) + geom_point()
