Dear all, this is a rather simple question but I have not found an optimal solution for what I need. I am trying to include a subscript in the title of a Shiny App. Unfortunately neither of the solutions that I have found is good aesthetically.
library(shiny)
ui <- fluidPage(
withMathJax(),
h1(expression(Hello~O_2)),
h1("Hello $$O_2$$"),
h1("Hello O",tags$sub("2"))
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
The third option is the best, but the subscript is separated by one space. Do you know how to write subscript with clean look as in a ggplot??
Any help is appreciated,
Oriol