[R-sig-Geo] Help with plotKML::kml() ?

MacQueen, Don macqueen1 at llnl.gov
Fri Aug 4 21:05:50 CEST 2017


Can I get some help with the
   plotKML::kml()
function? I'm looking at various documentation and having trouble finding what I need.

Suppose "foo" is a SpatialPolygonsDataFrame object with a lat/long coordinate reference system. Then in R I can do, for example,

  plot(foo, col='yellow', border='red')

I want to write a KML file that will display the polygon in Google Earth with the same colors.

  plotKML::kml(foo, colour='yellow')

gets the fill, but I can't find how to set the border color.

I'd also like to be able to specify no fill, border only.

Thanks
-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062




More information about the R-sig-Geo mailing list