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

From: Shant Ch <sha1one_at_yahoo.com>
Date: Wed, 25 May 2011 06:07:27 -0700

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_at_gmail.com>
To: r-help_at_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_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.

        [[alternative HTML version deleted]]



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 - 14:37:16 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 - 15:20: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