flexdashboard

How to display multiple plots on an R flexdashboard page if using storyboard layout

时光毁灭记忆、已成空白 提交于 2019-12-06 04:09:40
I'm building an R FlexDashboard in storyboard format. I'd like to display multiple plots on a few of the storyboard pages, including a series of linked plots using crosstalk. However, when I try to display multiple plots on a page or use the bscols() function, the page looks all messed up. Are multiple plots allowed in R FlexDashboard's storyboard format? Here is an example: --- title: "Error_example" output: flexdashboard::flex_dashboard: storyboard: true theme: bootstrap --- ###Example: Why can't won't the datatable show up below the plot in this storyboard? ```{r} library(plotly) library(DT

Change font size for individual text section in flexdashboard

﹥>﹥吖頭↗ 提交于 2019-12-06 01:35:36
问题 I'm using flexdashboard to create reports and I want to change a font size only for one part of the page. It feels to me that I can do it by adding CSS class, but I can't find how can I specify class name in R markdown code. Any ideas? 回答1: You can add CSS directly into your Rmarkdown document. For example, if you wanted to change the font of objects with class "chart-title" you could insert the following into your R markdown file: --- title: "Title" output: flexdashboard::flex_dashboard:

How to extend the renderTable width in Shiny flexdashboard

☆樱花仙子☆ 提交于 2019-12-05 05:42:45
I have the following self containing Shiny-Flexdashboard: --- title: "FOO" runtime: shiny output: flexdashboard::flex_dashboard: vertical_layout: scroll orientation: rows theme: default --- ```{r setup, include=FALSE} library(flexdashboard) library(tidyverse) ``` Rows ------------------------------------- ### Statistical Test Summary ```{r stat_test_table} mainPanel( renderTable( { dat <- df <- structure(list(`Sample name` = structure(1:3, .Label = c("Sample1", "Sample2", "Sample3"), class = "factor"), `FDR correction (mean)` = c(5.93070861978308e-15, 6.88632524238004e-13, 3.28339498763286e-16

reproducing shiny using flexdashboard template

主宰稳场 提交于 2019-12-05 03:28:31
问题 I borrowed this code below from the shinygallery and made some changes. Basically this uses fluidPage . I am interested in redoing the same thing using flexdashboard . I have gone through the flexdashboard userguide. but the descriptions on that website are in some rmarkdown or sweave format ?? which I am not familiar with. So if I can see the flexdashboard version of this example without the markdown or sweave then i can easily relate to different components and build on that. Any tips or

reproducing shiny using flexdashboard template

扶醉桌前 提交于 2019-12-03 20:39:35
I borrowed this code below from the shinygallery and made some changes. Basically this uses fluidPage . I am interested in redoing the same thing using flexdashboard . I have gone through the flexdashboard userguide . but the descriptions on that website are in some rmarkdown or sweave format ?? which I am not familiar with. So if I can see the flexdashboard version of this example without the markdown or sweave then i can easily relate to different components and build on that. Any tips or pointers are appreciated folks. library(shiny) ui = shinyUI(fluidPage( mainPanel( tabsetPanel( tabPanel(

Conditional reactive logic shiny based flexdashboard

断了今生、忘了曾经 提交于 2019-12-03 17:00:44
问题 I am trying to contiditonally do either one type of render ( renderPlot ) or another ( renderText ) based on some input. Here's what I tried: --- title: "Citation Extraction" output: flexdashboard::flex_dashboard: vertical_layout: scroll orientation: rows social: menu source_code: embed runtime: shiny --- ```{r setup, include=FALSE} library(flexdashboard) library(shiny) ``` Sidebar {.sidebar} ===================================== ```{r} textInput("txt", "What's up?:") ``` Page 1 =============

Conditional reactive logic shiny based flexdashboard

冷暖自知 提交于 2019-12-03 07:21:58
I am trying to contiditonally do either one type of render ( renderPlot ) or another ( renderText ) based on some input. Here's what I tried: --- title: "Citation Extraction" output: flexdashboard::flex_dashboard: vertical_layout: scroll orientation: rows social: menu source_code: embed runtime: shiny --- ```{r setup, include=FALSE} library(flexdashboard) library(shiny) ``` Sidebar {.sidebar} ===================================== ```{r} textInput("txt", "What's up?:") ``` Page 1 ===================================== ### Chart A ```{r} urtxt <- reactive({input$txt}) if (nchar(urtxt()) > 20){

R- knitr:kable - How to display table without column names?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 16:22:09
Currently, I have this data frame (PS): My code to display this table is: kable(PS) %>% kable_styling(bootstrap_options = c("striped", "hover", "condensed", "responsive")) I want to display the table without column names like this: Problem is 1) The column names should be non-empty, and attempts to use empty names will have unsupported results 2) If I convert the data frame and remove the column names and then use kable like this: PS.mat <- as.matrix(PS) colnames(PS.mat) <- NULL kable(PS) %>% kable_styling(bootstrap_options = c("striped", "hover", "condensed", "responsive")) I get the

R- knitr:kable - How to display table without column names?

*爱你&永不变心* 提交于 2019-12-01 15:12:55
问题 Currently, I have this data frame (PS): My code to display this table is: kable(PS) %>% kable_styling(bootstrap_options = c("striped", "hover", "condensed", "responsive")) I want to display the table without column names like this: Problem is 1) The column names should be non-empty, and attempts to use empty names will have unsupported results 2) If I convert the data frame and remove the column names and then use kable like this: PS.mat <- as.matrix(PS) colnames(PS.mat) <- NULL kable(PS) %>%

How to render flexdashboard from the command line?

那年仲夏 提交于 2019-12-01 08:48:27
I have a flexdashboard Rmd that renders correctly when i press the Knit button in RStudio. I would like to render it from the command line but the naviagation bar does change when I use the command render("myfile.rmd", flex_dashboard()) The heading of my Rmd file is the following: --- title: "Flexdashboard" output: flexdashboard::flex_dashboard: theme: cosmo navbar: - { title: "Draft-For Internal Use Only", align: right } source_code: embed --- You can call render with no arguments and it will pick up all of the options in YAML: render("myfile.Rmd") Altons was correct that using flex_dashboard