Skip to content
Prev 21115 / 29559 Next

Re : Ecological Niche Factor Analysis

Thanks Mathieu!

This has gone very well so far, but I cannot seem to get the XY location
data and the bioclim maps in the same proj4string.
 CODE: pr <- slot(count.points(corysp, bio), "data")[,1]
Error in count.points(corysp, bio) : different proj4string in w and xy

This seems strange since everything in the same coordinate system WGS 1984
from previous analysis.

 class(corysp)
[1] "SpatialPointsDataFrame"
attr(,"package")
[1] "sp"

summary(corysp)
Object of class SpatialPointsDataFrame
Coordinates:
                min       max
coords.x1 -124.1643 -119.7514
coords.x2   37.0000   40.8030
Is projected: NA
proj4string : [NA]
Number of points: 44
Data attributes:
               taxon_name   Y_latitude      X_longitud
 Collinsia corymbosa:44   Min.   :37.00   Min.   :-124.2
                          1st Qu.:37.98   1st Qu.:-123.8
                          Median :39.46   Median :-123.8
                          Mean   :38.99   Mean   :-123.3
                          3rd Qu.:39.50   3rd Qu.:-122.6
                          Max.   :40.80   Max.   :-119.8


I have tried to change the coordinate system using
CODE:

coordsp<-SpatialPoints(corysp, proj4string=CRS(as.character(NA)), bbox =
NULL)

But get the same issue:

pr <- slot(count.points(coordsp, bio), "data")[,1]
Error in count.points(coordsp, bio) : different proj4string in w and xy


Also, I still cannot may histograms using the bioclim map data.


Thanks so much for your assistance! You have helped me so much!


Alannie
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Re-ReA-Ecological-Niche-Factor-Analysis-tp7586535.html
Sent from the R-sig-geo mailing list archive at Nabble.com.