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
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')
>
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