I have a dataframe composed of IP addresses and corresponding values. I want to visualize these IP addresses (converted to geospatial coordinates) and corresponding values as a bubble map.
The problem is that some of these IP addresses are in the same city. This means that I have multiple bubbles in almost the exact same area, which I'd rather see combined into a single bubble.
So far what I've tried is converting IP addresses -> Lat and Long (ip2coordinates
from RDSTK
) -> Addresses (using coordinates2politics
from RDSTK
), and then using CartoDB to convert those city names to coordinates and plotting them there.
I've run coordinates <- lapply(ips$field_1, ip2coordinates)
, but instead of returning a dataframe it returns a long (and useless) list.
What's an alternative way of doing what I'm trying to do?