Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201867

How do I add text in the legend section of a waffle plot in R?

$
0
0

I am trying to create a waffle plot. My data and waffle plot looked like this-

parts=c("Extraction"=397, "Operculectomy"=11, "Medication"=3)

waffle(parts, row=12, colors=c("#CC0000", "#006600", "#669999"))

enter image description here

I want to add some text on the label of the legend section of this plot like below:

Extraction (397/413)

Operculectomy (11/413)

Medication (3/413)


Viewing all articles
Browse latest Browse all 201867

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>