search for: mapit

Displaying 3 results from an estimated 3 matches for "mapit".

Did you mean: mapi
2004 May 03
1
Speed up graphics output?
...uot;c:\\data\\region4.shp", dbf.data = TRUE) #Loop through the clusters and produce maps of each region #The base maps stay the same with the exception of map1 #which has the title of Cluster # and the points which #reflect the current cluster. #Subset data on cluster for(i in 1:ClusCount){ mapit <- subset(datain, cluster == i) screen(1) plot(w, xlab="", ylab="", fg="white", axes = F, main=paste("Cluster",i)) points( as.matrix(mapit[,2]), as.matrix(mapit[,3]), col="red", pch=19) screen(2) plot(x, ylim=c(42.9, 44.2), xlim=c(-80.2,...
2004 Mar 31
4
Removing leading and trailing spaces (string manipulation)
...mes like 'Cluster 1 .jpeg'. How can I get rid of the unwanted spaces? I've looked at ?format and it doesn't seem to work - at least in this context. ################### ClusCount <- 40 datain <- as.data.frame( read.csv("c:\\daclus.csv")) for(i in 1:ClusCount){ mapit <- subset(datain, cluster == i) jpeg(file=paste("c:\\temp\\cluster",format(i),".jpeg"), width = 640, height = 480, pointsize = 12,quality = 300, bg = "white") plot( as.matrix(mapit[,2]), as.matrix(mapit[,3]),xlim=c(-141.6,-52.1),ylim=c(41.5,83.7), type = "p&...
2010 Feb 16
0
Strange routing(?) Issue
I have a Model event and the following two lines in routes.rb 1 - map.connect "events/:action", :controller => ''events'', :action => / [a-z_]+/i 2 - map.resources :events, :has_many => :comments, :has_one => :address #, :collection => {:mapit => :get} I have #1 so that I can call custom actions from a link_to_remote link from my index page t0 update a div. <%= link_to_remote "Map", :method => "get", :url => {:action => "mapit", :controller => "events"} %> Please see contro...