Forked from anonymous/Plotting_clustering_timeseries.R
Last active
February 3, 2016 17:13
-
-
Save musically-ut/3229249926541e2cf338 to your computer and use it in GitHub Desktop.
Plot_cluster.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
par(mfrows=c(clustering$cluster,1)) | |
for(j in 1:max(clustering$cluster)) | |
{ | |
x <- 1:12 | |
d <- d[clustering$cluster == j,] | |
plot.default(x = NA, xlim = c(1, 12), | |
ylim = c(min(y), max(y)), xlab = "Time", ylab = "Expression changes", | |
main = paste("Cluster", j), axes = FALSE) | |
for(k in 1:nrows(d)) { | |
lines(x, d[k, ]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment