

 
> I am trying to use this thread to import coastlines into R, however i am not
> succeeding:
> 
> When I try(with latest version of maptools  and psbmapping just installed):
> 
> a) wcoastline <- read.shp("C:/Users/Agus/Desktop/Distributional range
> size/GSHHS_shp/gshhs_land.shp")
> I get
>  Error: could not find function "read.shp"

To use the function   "read.shp"  you must to install the "shapefiles" packages

http://rss.acs.unt.edu/Rdoc/library/shapefiles/html/shapefiles.html

Otherwise, you can use the function "readShapeSpatial" from maptools packages to import
your shapefile.

http://hosho.ees.hokudai.ac.jp/~kubo/Rdoc/library/maptools/html/readShapeSpatial.html

> 
> b)  coastline=importGSHHS("C:/Users/Agus/Desktop/Distributional range
> size/GSHHS_shp/gshhs_land.shp"
>                       , xlim=c(envir@extent@xmin,envir@extent@xmax), 
>                                ylim=c(envir@extent@ymin,envir@extent@ymax))
> 
> I get:
> 
> importGSHHS status:
> --> Pass 1: complete: 0 bounding boxes within limits.
> --> Pass 2: 
> Error in importGSHHS("C:/Users/Agus/Desktop/Distributional range
> size/GSHHS_shp/gshhs_land.shp",  : 
>   call to gshhs failed.
> 
> Could you please give me any hint?
> 

John Ortiz
Smithsonian Tropical Research Institute
Panama
 		 	   		  
	[[alternative HTML version deleted]]

