view SMC2015latex/R/modelsprediction.R @ 42:121d0e1f1748

Added the R plots
author csong <csong@eecs.qmul.ac.uk>
date Thu, 23 Apr 2015 22:08:48 +0100
parents
children 4110da08bca9
line wrap: on
line source
library(ggplot2)

df <- read.csv("newall.csv", header = T)


t<-theme(
  plot.background = element_blank(), 
#  panel.grid.major = element_blank(), 
#  panel.grid.minor = element_blank(), 
  panel.border = element_blank(), 
  panel.background = element_blank(),
  axis.line = element_line(size=.5),
  axis.text.x = element_text(family = "sans", size=10, color = "black"),
  axis.text.y = element_text(family = "sans", size=10, color = "black"),	                             
  axis.title.x = element_text(family="sans", color="black", size=15, vjust = -0.7),
  axis.title.y = element_text(family="sans", color="black", size=15, vjust = 0.4),
  legend.position = "none"
 )


p <- qplot(Index,Syncopation, data = df, geom = c("point","line"), color = Model)
p+t