Dear list,

I am trying to plot some spatial data in Google Earth but have a hard time with the plotKML manual. What is missing in my script that will make plotKML() work ?

Thank you for your time,

Juliane

xc = round(runif(10,-1,1)+27.2, 2)
yc = round(runif(10,-1,1)+-82.5, 2)
xy = cbind(xc, yc)
xy.sp = SpatialPoints(xy)
df = data.frame(z1 = round(5 + rnorm(10), 2), z2 = 20:29)
SP.spdf = SpatialPointsDataFrame(xy.sp, df)
plot(SP.spdf)
#add a projection
proj4string(SP.spdf) = CRS("+proj=longlat +datum=WGS84")
plotKML(SP.spdf)

	[[alternative HTML version deleted]]

