ShinyApp :: Layout

Published by onesixx on

http://shiny.rstudio.com/articles/layout-guide.html

 

Layout함수

https://shiny.rstudio.com/reference/shiny/latest/

Page함수

navbarPage   <Top레벨 컴포넌트 메뉴를 가진 Application 생성, tabPanel >
fluidPage  
<fluid Grid System,  fluidRow(  column(),  column(4, offset = 1,  ), …) 컨테이너  사용> 
fixedPage
<fixed Grid System, fixedRow(  column(),  column(4, offset = 1,  ), …) 컨테이너  사용>
bootstrap~(basic~ ), fill~

Layout 함수

sidebarLayout
flow~,  split~, vertical~

 

Panel함수

titlePanel, sidebarPanel, mainPanel
tabsetPanel  <레이아웃을 분리하기, tabPanel  >
navlistPanel <레이아웃을 분리하기, tabPanel  >
absolute~(fixed~), condition~,  header~, input~, well~
updateNavbarPage, updateTabsetPanel , updateNavlistPanel

 

Theme 사용

https://bootswatch.com/
https://rstudio.github.io/shinythemes/
https://github.com/rstudio/shinythemes
sudo su - -c "R -e \"install.packages('shinythemes', repos='http://cran.rstudio.com/')\""
library(shinythemes)
install.packages("shinythemes")

 

Tag

> tags$p(tags$a("Link", href="google.com"),"please Click!")

<p>
  <a href="google.com">Link</a>
  please Click!
</p>

 

HTML 템플릿

ui.R에서 htmlTemplate() 함수 사용.

 

 

 

Categories: R-Shiny

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x