Re: [R] plotting texas school district using shape files

From: Ben Bolker <bbolker_at_gmail.com>
Date: Wed, 25 May 2011 12:06:19 +0000

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_at_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. Received on Wed 25 May 2011 - 12:10:23 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 25 May 2011 - 14:40:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive