1. Look into the ggmap package if you want to overlay your data onto a map. 2. Re your color scale representation, define 'appropriately'. Do you mean a continuous range expressible in a colorbar or a discrete range, and if the latter, what intervals did you have in mind?
Dennis On Fri, Apr 4, 2014 at 2:42 AM, drunkenphd <enrr...@fimif.upt.al> wrote: > Hi, > I have a list of cities and their coordinates, and also for each city I have > a variable varA which I want to represent in a map using ggplot. > For example : > > CityA lat 22.93977 lon 46.70663 varA 545 > > CityB lat 23.93977 lon 46.70663 varA 122 > > VarA values begin from 0 to 3000. > I want the color scale to represent this range appropriately. > Can you help > Regards > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/How-to-plot-data-using-ggplot-tp4688168.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.