Description Usage Arguments Note Author(s) Examples
Creates a male silhouette image, partially filled with a color. Returns a list containgin a character vector of an 'img' block that can be embedded into HTML output and the SVG text.
1 2 | male_polygon(fillPercentage, fillColor = "#3a9fbf",
emptyColor = "#D9D9D9", size = "128px", includePercentLabel = T)
|
fillPercentage |
An integer. How much to fill the polygon. |
fillColor |
A character vector. The color to fill it with. Can be any valid SVG color value (e.g., "#FF0000", "red"). Default is light blue. |
emptyColor |
A character vector. The background color of the polygon, indicating the portion of it that is "empty.' |
size |
A character vector. The size of the SVG output. Can be any valid HTML size argument (e.g., "64px" or "50%"). |
includePercentLabel |
A logical. Whether to include a label in the top left corner showing the percent that the polygon if filled. |
Based on SVG from https://openclipart.org/detail/249447/male-symbol-silhouette.
Blake Madden
1 | male_polygon(50, "green", "256px")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.