Partially fill SVG polygons with a color in R
library(polyfillR)
femalePlot <- female_polygon(70, size="64px")
malePlot <- male_polygon(30, size="64px")
# place the two images together in a div and print it to the output (e.g., knitr document)
cat(paste0("<div style='display:flex;'>", femalePlot$Image, malePlot$Image, "</div>"))
Run the following in your R console:
library(devtools)
install_github("Blake-Madden/polyfillR")