Skip to content

Blake-Madden/polyfillR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages