Re: [R] Merge two ggplots

2010-11-21 Thread Dennis Murphy
' not found Calls: print ... lapply - is.vector - lapply - FUN - eval - eval -- *From:* Dennis Murphy djmu...@gmail.com *To:* Alaios ala...@yahoo.com *Cc:* Rhelp r-help@r-project.org *Sent:* Sat, November 20, 2010 4:24:15 PM *Subject:* Re: [R] Merge two ggplots

[R] Merge two ggplots

2010-11-21 Thread Alaios
) Error in eval(expr, envir, enclos) : object 'z' not found Calls: print ... lapply - is.vector - lapply - FUN - eval - eval From: Dennis Murphy djmu...@gmail.com Cc: Rhelp r-help@r-project.org Sent: Sat, November 20, 2010 4:24:15 PM Subject: Re: [R] Merge two

[R] Merge two ggplots

2010-11-20 Thread Alaios
Hello everyone. I am using ggplot and I need some help to merge these two plots into one. plot_CR-function(x,y,agentid,CRagent){   library(ggplot2)     agent-CRagent[[agentid]] # To make following expression shorter   ggplot((data.frame(x=CRX,y=CRY,sr=agent$sr)))+  

Re: [R] Merge two ggplots

2010-11-20 Thread Dennis Murphy
Hi: Perhaps a plus sign at the end of the line before geom_tile() would help. Dennis On Sat, Nov 20, 2010 at 6:30 AM, Alaios ala...@yahoo.com wrote: Hello everyone. I am using ggplot and I need some help to merge these two plots into one. plot_CR-function(x,y,agentid,CRagent){