[R] Spatstat: xy binary data into mask type to use in owin(mask=)

2009-10-19 Thread Javier PB
Dear users, I am trying to export polygons from Arcmap into Spatstat to run some simulations using functions available in Spatstat package. One particular area to be exported is formed by a number of polygons defining the external boundaries of the area (as a groups of islands) and a number of

[R] How can I run a function to a piece of text?

2009-10-16 Thread Javier PB
Dear users, I got really stuck trying to apply a function to a piece of code that I created using different string functions. To make things really easy, this is a wee example: x-c(1:10) script-x, trim = 0, na.rm = FALSE##script created by a number of paste() and rep() steps

[R] Plotting regression lines and points from lm using lattice

2008-12-17 Thread Javier PB
Dear R-users, Sorry if someone came out with a similar question but after one day of searching I am giving up: Does anyone know how to plot the original points used in a lm model and the set of resulting regression lines generated by the model? This is how I do it using the plot and lines