Re: [R] weighted cumulative distribution with ggplot2

2012-10-08 Thread Francesco
thank you very much David, I will have a look at your idea Best, On 8 October 2012 19:24, David Winsemius wrote: > > On Oct 8, 2012, at 10:12 AM, David Winsemius wrote: > >> >> On Oct 8, 2012, at 9:18 AM, David Winsemius wrote: >> >>> >>> On Oct 8, 2012, at 8:01 AM, Francesco wrote: >>> I th

Re: [R] weighted cumulative distribution with ggplot2

2012-10-08 Thread David Winsemius
On Oct 8, 2012, at 10:12 AM, David Winsemius wrote: > > On Oct 8, 2012, at 9:18 AM, David Winsemius wrote: > >> >> On Oct 8, 2012, at 8:01 AM, Francesco wrote: >> >>> I think I have my answer... ggplot2 uses ecdf which does NOT allow >>> weightings... >>> so there is no warning or error, but

Re: [R] weighted cumulative distribution with ggplot2

2012-10-08 Thread David Winsemius
On Oct 8, 2012, at 9:18 AM, David Winsemius wrote: > > On Oct 8, 2012, at 8:01 AM, Francesco wrote: > >> I think I have my answer... ggplot2 uses ecdf which does NOT allow >> weightings... >> so there is no warning or error, but still the resulting plot do not >> take into account the command w

Re: [R] weighted cumulative distribution with ggplot2

2012-10-08 Thread David Winsemius
On Oct 8, 2012, at 8:01 AM, Francesco wrote: > I think I have my answer... ggplot2 uses ecdf which does NOT allow > weightings... > so there is no warning or error, but still the resulting plot do not > take into account the command weight=weight It was completely unclear why you expected ggplot

Re: [R] weighted cumulative distribution with ggplot2

2012-10-08 Thread Francesco
I think I have my answer... ggplot2 uses ecdf which does NOT allow weightings... so there is no warning or error, but still the resulting plot do not take into account the command weight=weight Hope that helps someone, just in case ;-) On 8 October 2012 15:40, Francesco wrote: > Dear all, > > I

[R] weighted cumulative distribution with ggplot2

2012-10-08 Thread Francesco
Dear all, I am trying to draw a weighted cumulative distribution (as defined here http://rss.acs.unt.edu/Rdoc/library/spatstat/html/ewcdf.html) with ggplot2 however the syntax temp<-qplot(X,weight=weight,data=data,stat = "ecdf", geom = "step",colour=factor(year)) seems not to produce exactly th