Re: [R] smooth scatterplot and geo map

2011-07-28 Thread Leo Guelman
check smooth.ppp{spatstat}  which performs spatial smoothing based on a
Gaussian kernel...it has a plot method that may do what you are looking for

hope this helps,
Leo.

On Thu, Jul 28, 2011 at 4:09 PM, marco marco.mile...@aim.uzh.ch wrote:

 Hello everybody,
 I'm trying to understand how to draw a smoothed scatterplot on a geographic
 map with R.
 Have a dataframe with point locations (long, lat) and was able to simply
 plot these points on a shp map by using the maptools package. However,
 instead of having simply the raw points on the map, I would like to have a
 smoothed scatterplot of the same superimposed on the map. Tried with the
 smoothScatter function, but really have no idea how to combine the map with
 the resulting graph.
 tx in adv
 marco

 --
 View this message in context:
 http://r.789695.n4.nabble.com/smooth-scatterplot-and-geo-map-tp3702374p3702374.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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.htmlhttp://www.r-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Simple example of using a closure in R to manage bank accounts?

2011-07-25 Thread Leo Guelman
something like this maybe?

account - function (balance=0) {
 function (d = 0,w = 0) {
newbal - balance + d - w
   balance - newbal
   newbal
   }
}
John - account(100)
John
John(d=100,w=50)
John()

Leo - account(1000)
Leo
Leo(d=1000,w=50)
Leo()
Leo(d=100,w=500)
Leo()
Leo.

On Mon, Jul 25, 2011 at 6:00 PM, Michael Hannon jm_han...@yahoo.com wrote:

 Greetings.  I once ran across a simple (toy) example of using a closure in
 R to
 manage bank accounts.  I've got a use for it now but can no longer find it.
  If
 you have it (or a similar example), will you please send it to me?
 (Unfortunately, a web search that includes the terms bank and closure
 leads
 into a whole pile of unrelated stuff.)

 Thanks,

 -- Mike

 __
 R-help@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.


[[alternative HTML version deleted]]

__
R-help@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.


[R] Linear Contrasts in GLM - Query

2009-09-04 Thread Leo Guelman
Hi,

Is there a way I can specify linear contrasts in glm? I'm looking for
something equivalent to SAS' contrast statement.

I'd like to do the following, suppose I have a categorical input with 4
levels (a,b,c,d), I'd like to test something like: (i)  a+b=c+d, (ii) a=b,
(iii) a=b+d, etc...

Thanks in advance for your help!

Leo.

[[alternative HTML version deleted]]

__
R-help@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.


[R] R Courses in Toronto

2009-06-11 Thread Leo Guelman
Dear R users,

Does anybody know if there any good R courses within the Toronto area?

Thanks!

[[alternative HTML version deleted]]

__
R-help@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.


[R] Rdonlp2 -Query

2009-03-07 Thread Leo Guelman
Hi,

Did anyone used this package? Could you please share your thought on it?

Thanks!

L.

[[alternative HTML version deleted]]

__
R-help@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.