0
Shiny提供了withMathJax()
函数来显示UI中的公式。闪亮的用户界面:`withMathJax()`在radioButton和checkboxGroupInput中
我想显示一些数学wihtin复选框和/或单选按钮选项 - 但不要让它工作。
小例子
require(shiny)
runApp(
list(ui = pageWithSidebar(
headerPanel(withMathJax("$$\\text{Here it works }X_n=X_{n-1}-\\varepsilon$$")),
sidebarPanel(radioButtons("test", withMathJax("$$\\text{Here it works too }X_n=X_{n-1}$$"),
choices = c(paste(withMathJax("$$\\text{Here it doesn`t work }X_n=X_{n-1}$$"), "= test"),
"Rohe Skalierung" = "raw",
"Ueber alle Werte" = "std",
"Innerhalb der Personen" = "gstd"))),
mainPanel()
),
server= function(input, output, session){
}
)
)