A useful way to get a feel for ggplot2 is to check out
http://yeroon.net/ggplot2/
This site allows for a point-and-click ggplot2 graphs. You will not
have all of the options from ggplot2 (e.g. themes), but it's a good
place to get started.
Also, there are some wonderful video tutorials in the help section.
Cheers!
--
John A. Ramey, M.S.
Ph.D. Candidate
Department of Statistics
Baylor University
http://www.johnramey.net
On Wed, Jun 1, 2011 at 6:43 AM, rmje <robinmjelle at gmail.com>
wrote:> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
John A. Ramey, M.S.
Ph.D. Candidate
Department of Statistics
Baylor University
http://www.johnramey.net