I have been strugglig with a waffle plot with human icon using R, where my data has decimal values. (I based my code in this link: https://www.listendata.com/2019/06/create-infographics-with-r.html) So, I want to plot 100 human, where 97.5 will be black and 2.5 will be blue.
For that, I do the following code:
waffle(
c(`No-disease` =97.5,
`Disease` = 2.5), rows = 10, colors = c("black", "blue"),
use_glyph = "female", glyph_size = 10 ,title = 'Percentage of disease', legend_pos="bottom"
)
I get this:
But my goal would be this:
Thank's in advance.