I have a data frame (data) that looks like this:
Condition1 Condition2 Significant?
2.4 5.3 no
9.3 15.9 no
12.1 121.1 yes
0.2 151.3 yes
I am reading in the data.frame and plotting a scatter-plot as follows using qplot:
data<-read.table("input.txt",header=TRUE, row.names=1)
con<-data[,1]
con<-data[,2]
sig<-data[,3]
qplot(con, exp, data = data) +
geom_point(aes(color=sig), size=I(0.6))
I'm trying to:
a) Colour the points by significance: 'yes' = red, 'no' = black
b) Size the points according to significance: 'yes' = size=I(0.8), 'no' = size=I(0.5)
I can produce a default colour scheme using the above code, but I can't work out how to customise the colours and sizes for the different groups - I imagine it's fairly trivial to do if you know your way around R, but I don't!
