public
Created

Code for making a plot of contractor locations

  • Download Gist
india.R
R
1 2 3 4 5 6 7 8 9
library(ggplot2)
library(sqldf)
# using the dataset 'raw' wich is a list of contractors by lat, long
df <- sqldf("SELECT COUNT(*) AS num, LocLat, LocLong
FROM raw GROUP BY LocLat, LocLong")
g <- qplot(LocLong,LocLat, colour=num, size=log(num), data = df)
png("india.png")
print(g)
dev.off()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.