Can I add a rho (Greek letter small) as an icon to a value box in RShiny? For example, with the following code snippet, I have created a value box that has the € symbol as an icon:
valueBox(winterMean, subtitle = "Mean Winter", color = "black", icon = icon("euro-sign"))
This gives the following value box:
How can I replace the € symbol by a small rho?
We can add custom Greek letters using Unicode Character "ρ" (U+03C1) through custom css, see example:
Using flexdashboard:
Our example rmd file:
And additional styles.css file:
Output:
Note: For my test I kept css file in the same folder as rmd file, but it could be in any subfolder, then we need to define the full path in rmd, e.g.:
resources/css/styles.css
.Using shinydashboard
Output: