Hi there,
I tried to add a coastline that is imported from a shapefile to a xyplot of
sample points, but I got an error message.
> library(lattice)
> library(maptools)
> xyplot(mud$lat~mud$long, asp="iso", type="p", pch=1, cex=0.01, xlab="",
ylab="")
>
> plot(coastline, add=T)
Error in plot.xy(xy.coords(x, y), type = type, ...) :
plot.new has not been called yet
>
I also tried using plot.new=TRUE in the xyplot and got the same message.
I could get a plot from only using plot(coastline), but could not add it to
the existing xyplot.
Thanks in advance.
Jin
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo