Displaying 12 results from an estimated 12 matches for "gpclibpermit".
2010 Jul 14
2
qplot in ggplot2 not working any longer - (what did I do?)
...e("~/R_scripts/llScript.R")
#set help_type
options(help_type="html")
#exit to get around anoying q behavior
exit <- function(save="no"){q(save=save)}
#most used libraries
library(ggplot2)
library(vegan)
library(StreamMetabolism)
#allow gpclib package to be used
gpclibPermit()
--
Stephen Sefick
____________________________________
| Auburn University? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? |
| Department of Biological Sciences? ? ? ? ?? |
| 331 Funchess Hall? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| Auburn, Alabama? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? |
| 36849? ? ? ? ? ? ? ? ?...
2011 Jul 22
1
Start-up messages when Importing from a package
...oblem, but when I load the package, I
get the following message:
"
Loading required package: sp
Note: polygon geometry computations in maptools
depend on the package gpclib, which has a
restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Checking rgeos availability as gpclib substitute:
TRUE
"
However, if I only load the 'sp' package (in a different R session), I
don't get any warning message.
Is there any way I can prevent the warning message appears when I load
my package ?
Thanks in advance for any he...
2010 Jun 23
1
Plotting Data on a Map
...:/Documents and Settings/fcarrillo/Desktop/Software/R Scripts
and Datasets/NCTC/Data Analisys II/Data 4 Data Analysis II March 2009-
March2010/Data"
wolves.map <- readOGR(dsn=dsn, layer="PNW_wolf_habitat_grid")
class(wolves.map)
dim(wolves.map)
head(wolves.map,1)
names(wolves.map)
gpclibPermit()
wolves.ds <- fortify(wolves.map)
head(wolves.ds);tail(wolves.ds)
# Shapefile of 5 states
wolves.plot <- ggplot(wolves.ds,aes(long,lat,group=group)) +
geom_polygon(colour='white',fill='lightblue')
wolves.plot
# How to show the state borders of Washington, Oregon, Idaho, Monta...
2010 Jun 09
1
[R-sig-Geo] How to extract coordinates values from a shapefile?
I'm not sure if this is what you want. But the function coordinates() in sp
package gives you the coordinates of SpatialObjects.
Regards.
Rodrigo.
2010/6/9 Nikhil Kaza <nikhil.list@gmail.com>
> You need to execute gpclibPermit() to enable gpclib.
>
> library(maptools) should have issued a warning to that effect.
>
>
> Nikhil Kaza
> Asst. Professor,
> City and Regional Planning
> University of North Carolina
>
> nikhil.list@gmail.com
>
> On Jun 9, 2010, at 3:34 PM, Thiago Veloso wrote:...
2010 Jun 23
1
Shapefile
...ts and let me know if I need to
explain better what I am trying to accomplish.
library(rgdal)
library(maptools)
library(ggplot2)
dsn="C:/Data"
wolves.map <- readOGR(dsn=dsn, layer="PNW_wolf_habitat_grid")
class(wolves.map)
dim(wolves.map)
head(wolves.map,1)
names(wolves.map)
gpclibPermit()
wolves.ds <- fortify(wolves.map)
head(wolves.ds);tail(wolves.ds)
# Shapefile of 5 states
wolves.plot <- ggplot(wolves.ds,aes(long,lat,group=group)) +
geom_polygon(colour='white',fill='lightblue')
wolves.plot
# How to show the state borders of Washington, Oregon, Idaho, Monta...
2011 Apr 03
0
Plotting data on a US County Map
...data.frame(read.table(textConnection(" A CNTY_FIPS number
1 US001 2
2 US002 8
3 US003 3
4 US004 5
5 US005 6
6 US006 7
7 US007 9
8 US008 9
9 US009 10
10 US010 11
11 US011 13
12 US012 15"),head=TRUE,stringsAsFactors=FALSE))
library(maptools)
library(ggplot2)
library(gpclib)
gpclibPermit()
setwd("C:/Documents")
us_counties.shp <- readShapeSpatial("uscounties.shp")
us_counties.shp.p <- fortify.SpatialPolygonsDataFrame(us_counties.shp,
region="CNTY_FIPS")
us <- merge(us_counties.shp.p, us_counties.shp, by.x="id", by.y="CNTY_FI...
2010 Jun 24
0
rgdal-maptools
...ts and let me know if I need to
explain better what I am trying to accomplish.
library(rgdal)
library(maptools)
library(ggplot2)
dsn="C:/Data"
wolves.map <- readOGR(dsn=dsn, layer="PNW_wolf_habitat_grid")
class(wolves.map)
dim(wolves.map)
head(wolves.map,1)
names(wolves.map)
gpclibPermit()
wolves.ds <- fortify(wolves.map)
head(wolves.ds);tail(wolves.ds)
# Shapefile of 5 states
wolves.plot <- ggplot(wolves.ds,aes(long,lat,group=group)) +
geom_polygon(colour='white',fill='lightblue')
wolves.plot
# How to show the state borders of Washington, Oregon, Idaho, Monta...
2010 Jul 14
0
.Rprofile interfering with update.packages()
...e("~/R_scripts/llScript.R")
#set help_type
options(help_type="html")
#exit to get around anoying q behavior
exit <- function(save="no"){q(save=save)}
#most used libraries
library(ggplot2)
library(vegan)
library(StreamMetabolism)
#allow gpclib package to be used
gpclibPermit()
--
Stephen Sefick
____________________________________
| Auburn University? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? |
| Department of Biological Sciences? ? ? ? ?? |
| 331 Funchess Hall? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| Auburn, Alabama? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? |
| 36849? ? ? ? ? ? ? ? ? ?...
2010 Oct 12
0
Stripes in the plot
...m trying to plot the spatial distribution of the precipitation within an area. However, I think some thing wrong with the way to create the matrix for the precipitation data, so it came out lots of stripes. Could somebody help to see what's the problem?
Here's the code:
library(maptools);gpclibPermit()
KSR <- readShapeLines("/Users/R/Code/data/KS_River_Basin_Dissolve.shp")
states <- readShapeLines("/Users/R/Code/data/statesp020.shp")
ppt <- read.table ('/Users/R/Code/LULC/pptnewlulc.dat', header = FALSE) # the size is 5764(pixels) x 528(periods)
ppt <-...
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
...ueza_out.csv file.
The code below should do what you want. Also, since the legend title is kind of
long, I broke it
down into three lines so you can see more plot area. I am cc'ing the other
groups so more people
use it if needed.
library(rgdal)
library(ggplot2)
library(sp)
library(maptools)
gpclibPermit()
manuel <- readOGR(dsn=".", layer="AI_BIOTICA_010411_CRTM05")
names(manuel);dim(manuel)
slotNames(manuel) # look at the slot names
# add the 'id' variable to the shapefile and use it to merge both files
manuel@data$id = rownames(manuel@data)
# convert shapefile t...
2010 Jul 08
0
0 exit status on packages update try
...Loading required package: maptools
Loading required package: foreign
Loading required package: sp
Loading required package: lattice
Note: polygon geometry computations in maptools
depend on the package gpclib, which has a
restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Checking rgeos availability as gpclib substitute:
FALSE
General Polygon Clipper Library for R (version 1.5-1)
Type 'class ? gpc.poly' for help
[1] TRUE
* installing *source* package ?sp? ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -fpic -g -O2 -c
Rcentroid.c -o Rcentroid.o...
2010 Dec 11
0
is there a packge or code to generate markov chains in R
...the shape input (from
sids to world) which I downloaded here:
http://thematicmapping.org/downloads/world_borders.php. As a result I also
need to change the "CNTY_ID" and "id" in the code, but I have no idea what
[[elided Yahoo spam]]
Mathijs
library(maptools)
library(ggplot2)
gpclibPermit()
myshp<- readShapeSpatial(system.file("shapes/sids.shp",
package="maptools"))
## see licence, not GPL
myshp.points<- fortify.SpatialPolygonsDataFrame(myshp,
region="CNTY_ID")
shpm<- merge(myshp.points, myshp, by.x="id", by.y="CNTY_ID")...