https://github.com/cran/RgoogleMaps
Raw File
Tip revision: 392f74799555da9d9fb105874ce44eaffb439ca2 authored by Markus Loecher on 06 November 2023, 12:20:02 UTC
version 1.5.1
Tip revision: 392f747
mypolygon.R
`mypolygon` <-structure(function#simple wrapper function to plot colored polygons
###same as \link{polygon}, execept the value for color is taken from the 1st element of the exra column 'col'
(
  x, ##<< matrix containing columns X,Y,col
  ...##<< extra arguments passed to  \link{polygon}
){
  polygon(x[,c("X","Y")],col=x[1,"col"],...)  
})


back to top