【发布时间】:2019-02-13 23:27:51
【问题描述】:
我正在创建一个闪亮的应用程序,其中有两个徽标。假设这些标志是:
您可以在www folder here 中找到这两个徽标。
我希望在左上方有 Rstudio 徽标,在右上方有 USGS 徽标。我使用下面的代码做到了这一点
library(shiny)
ui <- fluidPage(
fluidRow(
column(4,
tags$img(height = 150,
width = 400,
src = "RStudio.png")),
column(5),
column(3,
tags$img(height = 150,
width = 400,
src = "USGS.png"))))
server <- function(input,output){}
shinyApp(ui = ui, server = server)
如果缩放为 100%,它工作得很好,但是,如果我缩小(即缩放 75%),USGS 徽标会向左移动,并且不会保留在最右上角。
当我使用 ggplot2 时,我发现每当我放大或缩小时,所有绘图都会重新调整。是否可以与图例相同,无论放大或缩小都将保持在同一位置?
【问题讨论】:
-
您可以尝试本页列出的不同布局系统:shiny.rstudio.com/articles/…