Displaying 1 result from an estimated 1 matches for "coast_n83".
2009 Jan 10
1
Bubble plot on shapefile - projection issues?
...y code is below.? I have also attached the shapefile and my data.
?
Thanks in advance for your help.
?
Aloha,
?
Tim
?
?
?
?
#Read ESRI shapefiles
library(maptools)
library (PBSmapping)
setwd("E:/Telemetry_research/Kealakekua Bay MPA study/R bubble plot")
hawaii.coast<- read.shape("coast_n83.shp")
?
#Read data and convert to event data
? mydat<-read.table("my.event", header=TRUE)
? my.event<-as.EventData(mydat,projection="LL")
?
#Calculate bubble size
? detects<-mydat$Detections
? max.symbol.size=10
? min.symbol.size=1
? bubble.size <- (detects-min(...