Re: [Rpy] rpy and maps

2009-07-14 Thread Chuck White
Thanks Laurent. I didn't realize that I need the first line shown below. r['data']('us.cities') < us_cities = globalEnv['us.cities'] r['map.cities'](us_cities, capital=2) -- Enter the BlackBerry Developer Ch

Re: [Rpy] rpy and maps

2009-07-13 Thread Laurent Gautier
Chuck White wrote: > Here's a piece of code used to plot some locations on a map. > > from rpy2.robjects import r,RDataFrame,globalEnv > r.library('maps') > self.store_info = r['read.delim']('file.dlm', sep='|', header=True) > r.png(file='locations.png', width=1500, height=840, bg='transparent') >

[Rpy] rpy and maps

2009-07-13 Thread Chuck White
Here's a piece of code used to plot some locations on a map. from rpy2.robjects import r,RDataFrame,globalEnv r.library('maps') self.store_info = r['read.delim']('file.dlm', sep='|', header=True) r.png(file='locations.png', width=1500, height=840, bg='transparent') r.map('state') r.points(r['$'](s