I'm trying to plot a graph on the interaction between two variables on repeated measures.
I installed tidyverse packages and loaded - GGplot-2.
I brought the data in and used this code:
data$Block<- as.factor(data$Block)
data$Seq_Type<-factor(data$Seq_Type, c(soc, moc))
but then this gives an error object 'soc' not found.
Error in factor(data$Seq_Type, c(soc, moc)) : object 'soc' not found
data$Seq_Type<-factor(data$Seq_Type, c(soc, moc))
I have both soc and moc variables in the column. I wonder why 'soc' is not found.