An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130415/322b76be/attachment.pl>
Multiple datasets with coordinates
3 messages · kevin.morelle at ulg.ac.be, Endri Raco
Hi, This worked for me but I only tried with ggplot: 1?) add a colum "$type" to your differents dataset to discriminate them 2?) join then your datasets in one dataframe (rbind) 3?) then in ggmap use "fill=type", so as: ggmap(al1) + geom_point(data=points, aes(size = 4, fill=type)) Hope it works, Kevin ----- Mail original ----- De: "Endri Raco" <endri81 at gmail.com> ?: r-sig-geo at r-project.org Envoy?: Lundi 15 Avril 2013 12:36:10 Objet: [R-sig-Geo] Multiple datasets with coordinates Hi group, Trying to plot with ggplot2 different datasets of coordinats inside the same chart. Till now I can plot ggmap(al1) + geom_point(data=points,colour="red", size = 4) where points are tables lon lat 41.00 19.02 but I need to add other sets of points(tables of coordinates) lon lat 41.00 19.02 ... ..... * * with other colors in the same chart.Is that possible? _______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130415/8d38a444/attachment.pl>