[R-sig-Geo] quadracount on multitype points

Marcelino de la Cruz Rot marcelino.delacruz at urjc.es
Tue Sep 12 18:19:42 CEST 2017


Hi Guy,

You can know how many points of each type are in each cell with sapply, 
i.e.:

 >data (lansing)

 >qs<- quadratcount(split(lansing))

#trees in the fist row, first column:
 > sapply(qs, function(x) x[1,1])
blackoak  hickory    maple     misc   redoak whiteoak
       13       66        0        0        4       23

#trees in the fist row, second column:
 > sapply(qs, function(x) x[1,2])
blackoak  hickory    maple     misc   redoak whiteoak
       16       38        3        0        9       16

# ETC. On the other hand I don't know if it is a good idea to have all 
this numbers printed in just one cell or how to print them without the 
result being a mess...

Cheers,

Marcelino.


El 12/09/2017 a las 16:11, Guy Bayegnak escribió:
> Dear all,
>
>
>
> I am working on a multitype point pattern, and I'd like to estimate how many of each type of point occurs into each quadrant. I know it is possible to use the quandracount on split marks as follows using spatstats: quadratcount(split(marks)). But the result produces as many windows as they are marks. I am wondering is there is a way to know many occurrence of each type there is per quadrant and to plot it in a single grid.
>
> Thanks,
>
> Guy
>
>
>
> This email and any files transmitted with it are confide...{{dropped:10}}
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> .
>

-- 
Marcelino de la Cruz Rot
Depto. de Biología y Geología
Física y Química Inorgánica
Universidad Rey Juan Carlos
Móstoles España



More information about the R-sig-Geo mailing list