In [9]:
library(dplyr)
library(ggplot2)
library(knitr)
In [3]:
data<-read.csv("../RESULTS_bin/SummaryRsqs.csv",header = TRUE, sep = ",")
head(data)
attach(data)
In [4]:
table(data$motion_thresh)
In [5]:
table(data$n)
In [10]:
ggplot(data, aes(x=motion_thresh, y=med_rsq, group=n, color=n))+geom_point() +scale_colour_gradientn(colours=rainbow(4))
In [11]:
aplot <-ggplot(data, aes(x=motion_thresh, y=med_rsq, group=n, color=n)) +scale_colour_gradientn(colours=rainbow(4))+
geom_errorbar(aes(ymin=med_rsq-CI_95/2,
ymax=med_rsq+CI_95/2),
width=0, alpha=.6)+geom_point()+
geom_line(alpha=.5)
print(aplot)
#ggsave(aplot, filename='/Users/Jlnrd/Desktop/mean_by_perc_fd.jpg', width=6, height=6)#, units='in', dpi=150)