> Hi Tomislav,
> I am using the kml() function in the plotKML package to write a SpatialPolygonsDataFrame object to a kml file, and would like to know if it is possible to specify the fill color and border color separately. I have been looking at documentation and been unable to find a way. I would appreciate any suggestions.
> 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', lwd=2)
> I would like to write a KML file that will display the polygon in Google Earth in a similar manner.
> I have found that
> plotKML::kml(foo, colour='yellow')
> controls the fill color, but I can't find how to set the border color.
> Ideally, I'd also like to be able specify border only, no fill, and also line widths for the border.
> For example, the kml file might have in it something like:
> <Style id="blue">