Unfortunately I don't know the structure of lidar object so I can't be very
specific about your problem, but have you tried being explicit in ppp()
call, e.g.:

ppp(x = lidar[, 1], y = lidar[, 2], window = owin1)

?

Cheers,
Roman



On Wed, Dec 1, 2010 at 12:12 PM, zbynek.janoska@centrum.cz <
zbynek.janoska@centrum.cz> wrote:

>
> I have troubles creating ppp object in spatstat using spatstat package.
> I would like to upload some lidar data and convert them to ppp, but error
> occured.
> I am working with dataset lidar, consisnting of two columns (x and y
> coordinates)
>
> > x1 <- min(lidar[,1])-1
> > x2 <- max(lidar[,1])+1
> > y1 <- min(lidar[,2])-1
> > y2 <- max(lidar[,2])+1
> > owin1 <- owin(c(x1,x2),c(y1,y2))
>
> so far it works well and I can also plot owin object
>
> > ppp1 <- ppp(lidar[,1],lidar[,2],owin1)
> Error in owin(...) :
>  If one of xrange, yrange is specified then both must be.
>
> I can not get past this error.
> I have succesfully created owin1 - window of class owin, but i can not use
> it to create ppp object
>
> Does anyone see what mistake I have done?
> Possibly it is something very easy, but I am quite new to R.
>
> Thanks,
> Zbynek
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/problem-creating-point-pattern-class-object-with-spatstat-package-tp5791421p5791421.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

