Re: [R] ggplot2 and add circle

2011-05-11 Thread Dennis Murphy
Dennis On Tue, May 10, 2011 at 11:43 PM, Alaios wrote: > Thanks a lot this worked nice. > It it possible also in ggplot2 to add a small figure? Let's say that I want > to have somewhere in the plot the value of r printed. > > How can I do that with ggplot 2? > > Regards &

Re: [R] ggplot2 and add circle

2011-05-10 Thread Alaios
27;,'y','z') > >   v<-ggplot(plotdata, aes(x, y, z = z)) > >   print(v + geom_tile(aes(fill=z))) > > > > } > > > > > > f<-matrix(data=seq(1:1),nrow=100,ncol=100) > > plot_shad_f(f) > > > > > > I would like

Re: [R] ggplot2 and add circle

2011-05-10 Thread Dennis Murphy
27;) >   v<-ggplot(plotdata, aes(x, y, z = z)) >   print(v + geom_tile(aes(fill=z))) > > } > > > f<-matrix(data=seq(1:1),nrow=100,ncol=100) > plot_shad_f(f) > > > I would like to add a circle at the middle of this region with a range of 10. > > Best R

Re: [R] ggplot2 and add circle

2011-05-10 Thread Scott Chamberlain
100) > plot_shad_f(f) > > > I would like to add a circle at the middle of this region with a range of 10. > > Best Regards > > Alex > > --- On Tue, 5/10/11, Scott Chamberlain wrote: > > > > From: Scott Chamberlain > > Subject: Re: [R] ggplot2 and ad

Re: [R] ggplot2 and add circle

2011-05-10 Thread Alaios
l=100) plot_shad_f(f) I would like to add a circle at the middle of this region with a range of 10. Best Regards Alex --- On Tue, 5/10/11, Scott Chamberlain wrote: From: Scott Chamberlain Subject: Re: [R] ggplot2 and add circle To: "Alaios" Cc: R-help@r-project.org Date: Tuesday, M

Re: [R] ggplot2 and add circle

2011-05-10 Thread Scott Chamberlain
You should provide reproducible data in addition to your code. S On Tuesday, May 10, 2011 at 11:54 AM, Alaios wrote: > Dear all, > today I have writted the following code, > to plot the contents of some matrices I have > > plot_shad_f > function(f){ > library(ggplot2) > dev.new() > plotdata<

[R] ggplot2 and add circle

2011-05-10 Thread Alaios
Dear all, today I have writted the following code, to plot the contents of some matrices I have plot_shad_f function(f){ library(ggplot2) dev.new() plotdata<-melt(f) names(plotdata)<-c('x','y','z') v<-ggplot(plotdata, aes(x, y, z = z)) print(v + geom_tile(aes(fill=z))) } I would like