search for: addlinetoplot

Displaying 1 result from an estimated 1 matches for "addlinetoplot".

2013 Apr 22
7
Multiple lon lat points in the map with ggplot2
...8.159 54.257 52.534 56.572 10.954 20.273 13.101 57.827 52.951 53.282 13.199 14.157 18.826 I load a map with command: p<-ggmap(map) But when I want to add points from my data.frame with for loop (A1 is x1, B1 is y1, A2 is x2, B2 is y2 and so on): for (num in 1:ncol(my data.frame)) { p<-p+addlinetoplot(my data.frame, varx = sprintf("B%s",num), vary = sprintf("A%s",num)) } Using not too many columns (up to 30) everything works fine. But when I want to plot over 100 columns - computer stalls and memory runs out suggesting to do memory.size() etc.. here addlinetoplot is a funct...