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
&
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
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
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
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
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<
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
7 matches
Mail list logo