require(rangeMapper)
con = rmap_connect()
wrens = read_wrens()
rmap_add_ranges(con, x = wrens, ID = 'sci_name')
rmap_prepare(con, 'hex', cellsize = 500)
rmap_add_bio(con, wrens, 'sci_name')
rmap_save_map(con)
rmap_save_subset(con,'s1',
species_richness = 'species_richness > 10',
wrens = 'body_mass > 19 AND clutch_size > 3')
dbDisconnect(con)
Run the code above in your browser using DataLab