Yes I had included the library(maptools) in my code, it is already installed in 
my computer. but still it is showing the same error.




________________________________
From: Ben Bolker <bbolker@gmail.com>
To: r-help@stat.math.ethz.ch
Sent: Wed, May 25, 2011 8:06:19 AM
Subject: Re: [R] plotting texas school district using shape files

Shant Ch <sha1one <at> yahoo.com> writes:

> 
> Hi,
> 
> I was plotting or creating a map for Texas school districts 
> using the shape file 
> of Texas. I could not find any other helpful mail in the mailing list.
> 
> txshp<-read.shape(system.file("S:\\Districts_10_11.shp", package="maptools"))
> 
> Error-  read.shape no found. But read.shape is there in maptools. 
> 

   A couple of things: that's probably not the *exact* error you
got.  Did you remember to load the package first with library("maptools") ... ?
(You did install the package first, too, right?)
  
  After you have done that I suspect you will still have a problem with
finding the file -- I think you want something like

library("maptools")
txtshp <- read.shape("S:\\Districts_10_11.shp")

  Ben Bolker

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

