0

I am new to using spacial data in R. I am trying to plot 2 layers on a base map but for some reason I can't get the syntax right.

qmplot((Longitude, Latitude, data = df1, colour = "blue",
zoom = 7) +
geom_point(
   aes(x = Longitude, y= Latitude),
   data = df2, colour = "red")
)
KerryLee
  • 373
  • 2
  • 5
  • 13
  • 1
    It would help if your example were [reproducible](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). Include sample data (we have no idea what's in `df1`) and be specific about what goes wrong. Is there an error message (include it)? Do you not what what you expect (describe what you expect)? – MrFlick Feb 25 '16 at 21:30
  • 1
    The parens are messed up. should be `qmplot(stuff) + geom_point(other stuff)` – cory Feb 25 '16 at 21:31

0 Answers0