r - How do I change the polygon fill color and border color for
![](https://i.stack.imgur.com/DIIle.png)
I have SpatialPolygons or SpatialPolygonsDataFrames which I'd like to plot. How do I change the color using the three plotting systems in R (base graphics, lattice graphics, and ggplot2)? Example
![](https://global.discourse-cdn.com/business7/uploads/psychopy/original/3X/a/c/ac3d244afec0ba493c295a0e5ebbb63056259216.png)
Signalling response after mouse click - Builder - PsychoPy
![](https://tomjenkins.netlify.app/tutorials/r-leaflet-introduction/index_files/figure-html/unnamed-chunk-4-1.png)
An introduction to R Leaflet
![](https://sp-uploads.s3.amazonaws.com/uploads/services/7412582/20230417105936_643d269888d94_graphics_lect_05_filling_part_1page0.jpg)
SOLUTION: Graphics lect 05 filling part 1 - Studypool
![](https://i.ytimg.com/vi/Q57xGqFzAss/maxresdefault.jpg)
Make outline color match fill color in QGIS
![](https://www.ncl.ucar.edu/Applications/Images/bar_4_lg.png)
NCL Graphics: Bar Charts
![](https://i.stack.imgur.com/QAp6O.png)
cartography - Styling border to match fill in QGIS? - Geographic Information Systems Stack Exchange
![](https://bookdown.org/content/b298e479-b1ab-49fa-b83d-a57c2b034d49/R-Gallery_files/figure-html/barplot-base-r-custom-color-2.png)
Chapter 4 Ranking
An Overview of Polygon Fill Areas in Computer Graphics, PDF, Polygon
![](https://issues.qgis.org/attachments/download/4050/qgis_semi.png)
Feature request #4553: Selection color/border size for polygons (with solid fill, no fill, semi-transparent fill) - QGIS Application - QGIS Issue Tracking
![](https://flyingmeat.com/acorn/docs/colors_palette0.png)
Acorn: Colors Palette
![](https://i.stack.imgur.com/XATDE.png)
plot - Legend with color filling and shading lines in Base R - Stack Overflow
![](https://d3h2k7ug3o5pb3.cloudfront.net/image/2020-12-15/173da150-3ec0-11eb-bbbf-d9d61a91d1ee.png)
Basic Components
![](https://mapserver.org/_images/symcon-polygonvector.png)
Cartographical Symbol Construction with MapServer — MapServer 8.0.1 documentation
![](https://www.magesblog.com/img/magesblog/lattice5.png)
Changing colours and legends in lattice plots