[R] re-write plot function for ggplot
rmje
robinmjelle at gmail.com
Wed Jun 1 15:43:24 CEST 2011
Hi, I have the following function that i use to plot graphs.
plot_mi_time = function(mdata, miname) {
mdata2 = mdata[row.names(mir_test3) == miname, ]
# print(mdata2)
xcoords <- c(1,1,2,2,3,3)
plot(xcoords, mdata2, xaxt="n", ylab="Expression", xlab="Time(h)", ,
main=miname)
axis(1, at=xcoords, labels=c("a","a","b","b","c","c"))
}
I want to edit this function so that i can plot it using ggplot.
Any suggestions on how to re-write it?
--
View this message in context: http://r.789695.n4.nabble.com/re-write-plot-function-for-ggplot-tp3565868p3565868.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list