Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 597 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 597 Bytes

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