문제

I want to display correctly formula in Shiny title, like in Latex:

X_n=X_{n-1}-\varepsilon_n

shinyUI(pageWithSidebar(

    headerPanel("Display formula in heading X_n=X_{n-1}-\varesilon"),

    sidebarPanel( ),

    mainPanel( )
  ))
도움이 되었습니까?

해결책

You can use withMathJax

require(shiny)
runApp(
  list(ui = pageWithSidebar(

  headerPanel(withMathJax("$$\\text{Display formula in heading }X_n=X_{n-1}-\\varepsilon$$")),

  sidebarPanel( ),

  mainPanel( )
),
server= function(input, output, session){

}
)

)

MathJax example

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top