Hi, I'm trying to plot a map with the location of the stations that I am using require(MASS)require(maps) mapaBrasil <- read.table("BASE_BR.txt",sep="") latlonRS <- read.csv2("coordenadas.txt",h=F,sep="")
png(filename="mapa_grupos.png",width=600,height=800) # criating a map for RSmap(xlim=c(-80,-35),ylim=c(-45,10), type="n")map.axes() # plot a maplines(mapaBrasil[,2], mapaBrasil[,1]) # plot stationspoints( latlonRS[,2], latlonRS[,1], pch=membros) dev.off() datas: V1 V21 -33.51 -53.352 -30.83 -55.63 -29.45 -51.84 -29.68 -51.055 -29.05 -50.136 -31.78 -52.417 -32.03 -52.18 -30.53 -52.51 and the ERROR IS: Carregando pacotes exigidos: MASSCarregando pacotes exigidos: mapsErro em plot.xy(xy.coords(x, y), type = type, ...) : objeto 'membros' não encontrado [[alternative HTML version deleted]]
______________________________________________ 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.