README.md

polyfillR

Partially fill SVG polygons with a color in R

Usage

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>"))

How to Install

Run the following in your R console:

library(devtools)
install_github("Blake-Madden/polyfillR")


Blake-Madden/polyfillR documentation built on March 3, 2021, 12:29 a.m.