Entering edit mode
R_diot • 0@50f26885
Last seen 9 weeks ago
In the picture i have up to 50 different clustering visualized using ggplot and geom_line, now there should be 4 different colors, each representing a genotype, but each line over the different time periods are the same different, only really differencing on the timepoint themselves
data_plot$timestamp <- factor(data_plot$timestamp, levels = c("0min", "45min", "24hr", "6d")) cluster.condition.png<- ggplot(data_plot, aes(timestamp, value, group = ID )) + facet_wrap(~class,nrow = 20, ncol = 10, scales = "free_y") + geom_line(alpha = 0.85, aes( x =timestamp, y = value,col = genotype )) + geom_line(data = centers, aes(timestamp, value), color = "firebrick1", alpha = 0.80, size = 1.2) + labs(x = "Time", y = "Load (normalised)") + theme_bw()+ ggtitle(label = "CONDITION")+ theme(axis.text.x = element_text(vjust=0.6, angle=-45)) sessionInfo( )
how do I get the blush green lines to be colour coded?