闪亮应用程序中titlePanel中的斜体字体

大马士革

有没有办法在我的体内加上斜体字shiny titlePanel

我试过了

library(shiny)

# Define UI for application that draws a histogram
ui <- shinyUI(fluidPage(

   # Application title
   titlePanel("Old <em>Faithful Geyser</em> Data"),

   # Sidebar with a slider input for number of bins
   sidebarLayout(
      sidebarPanel(
         sliderInput("bins",
                     "Number of bins:",
                     min = 1,
                     max = 50,
                     value = 30)
      ),

      # Show a plot of the generated distribution
      mainPanel(
         plotOutput("distPlot")
      )
   )
))

# Define server logic required to draw a histogram
server <- shinyServer(function(input, output) {

   output$distPlot <- renderPlot({
      # generate bins based on input$bins from ui.R
      x    <- faithful[, 2]
      bins <- seq(min(x), max(x), length.out = input$bins + 1)

      # draw the histogram with the specified number of bins
      hist(x, breaks = bins, col = 'darkgray', border = 'white')
   })
})

# Run the application
shinyApp(ui = ui, server = server)

并将标题打印为Old <em>Faithful Geyser</em> Dataem没有得到解释。我是在做错什么,还是没有办法在标题中得到斜体?

布鲁内尔

你好试试这个应该工作

titlePanel( div(HTML("Old <em>Faithful Geyser</em> Data")))

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

闪亮应用程序中titlePanel中的斜体字体

来自分类Dev

在闪亮的应用程序侧面板中更改字体颜色

来自分类Dev

matplotlib中斜体字体的标题不起作用

来自分类Dev

我的Ubuntu安装中缺少斜体字体

来自分类Dev

如何在byobu中获取斜体字体

来自分类Dev

emacs中的斜体字

来自分类Dev

RMarkdown在闪亮的应用程序中

来自分类Dev

闪亮应用程序中的参数文件

来自分类Dev

使用下标定义xlabel或ylabel时如何在python中禁用斜体字体

来自分类Dev

R中的闪亮应用程序中的sliderInput

来自分类Dev

R中闪亮的应用程序中的tabpanel

来自分类常见问题

在闪亮的应用程序中动态更新选择列表

来自分类Dev

如何在闪亮的应用程序中动态添加inputText?

来自分类Dev

闪亮的应用程序仪表板中的页脚对齐

来自分类Dev

将数据拖放到闪亮的应用程序中

来自分类Dev

rChart在闪亮的应用程序中打开新窗口

来自分类Dev

无需拉伸的闪亮应用程序的renderDataTable中的列宽

来自分类Dev

在闪亮的应用程序中删除mainPanel区域

来自分类Dev

闪亮的应用程序中的“重置输入”按钮

来自分类Dev

在闪亮的R应用程序中显示Euro simbol

来自分类Dev

闪亮的应用程序中的renderImage()和.svg

来自分类Dev

Microsoft R Server中的闪亮应用程序

来自分类Dev

在闪亮的应用程序中动态调整ggvis图的大小

来自分类Dev

在闪亮的应用程序中显示破折号

来自分类Dev

在闪亮的R应用程序中闪烁ggplot

来自分类Dev

在闪亮的应用程序中更改validate()中文本的颜色

来自分类Dev

模块化闪亮应用程序中的ggplots对齐

来自分类Dev

在闪亮的应用程序中插入书本的问题

来自分类Dev

如何从闪亮的应用程序的ggplot中删除NA值?

Related 相关文章

热门标签

归档