flexdashboard

Include table of contents in flexdashboard

穿精又带淫゛_ 提交于 2020-02-20 06:06:32
问题 I would like to include a table of contents in my flexdashboard document. Exactly like the table of contents we can see in the documentation : http://rmarkdown.rstudio.com/flexdashboard/using.html I have tried to add toc:true as in a classical RMarkdown document but it does not seem to work. --- title: "Reporting" output: flexdashboard::flex_dashboard: orientation: rows vertical_layout: scroll toc: true --- # Page1 Row ----------------------------------------------------------------------- ##

Include table of contents in flexdashboard

心已入冬 提交于 2020-02-20 06:06:23
问题 I would like to include a table of contents in my flexdashboard document. Exactly like the table of contents we can see in the documentation : http://rmarkdown.rstudio.com/flexdashboard/using.html I have tried to add toc:true as in a classical RMarkdown document but it does not seem to work. --- title: "Reporting" output: flexdashboard::flex_dashboard: orientation: rows vertical_layout: scroll toc: true --- # Page1 Row ----------------------------------------------------------------------- ##

Include table of contents in flexdashboard

戏子无情 提交于 2020-02-20 06:06:12
问题 I would like to include a table of contents in my flexdashboard document. Exactly like the table of contents we can see in the documentation : http://rmarkdown.rstudio.com/flexdashboard/using.html I have tried to add toc:true as in a classical RMarkdown document but it does not seem to work. --- title: "Reporting" output: flexdashboard::flex_dashboard: orientation: rows vertical_layout: scroll toc: true --- # Page1 Row ----------------------------------------------------------------------- ##

Enable autoscale in plotly.r

戏子无情 提交于 2020-02-05 04:34:27
问题 In my flexdashboard I used "plotly" library to plot the graph. when the data is refreshing at that time the bar size get reduced. At that time when I clicked on "autoscale" option then it is working fine. My question is can we enable autoscale automatically by any option in plotly.r code ? 回答1: Try setting autorange = TRUE for both the x- and y-axis in the layout option. This solved the issue for me. Example: plot_ly(x, y, type = "bar") %>% layout(xaxis = list(autorange = TRUE), yaxis = list

Reduce Font Size of datatable in a Flexdashboard

最后都变了- 提交于 2020-01-25 23:39:09
问题 I'm working on a shiny flexdashboard, and one of the elements is a datatable with a lot of columns. Currently the columns are so many that they exceed the width of the app. Instead of adding a scroll bar I would prefer to simply reduce the font used in datatable so that each column will be smaller. Is this possible? 回答1: Found the answer. Needed to wrap renderDataTable in a div. div(renderDataTable(table()),style = "font-size:80%) 来源: https://stackoverflow.com/questions/46534677/reduce-font

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

可紊 提交于 2020-01-02 09:36:13
问题 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

Flexdashboard Gauge not rendering when I publish to shinyapps.io

扶醉桌前 提交于 2019-12-25 01:14:08
问题 This is the code that I am using to render a gauge in flexdashboard with a runtime: shiny : `renderGauge({ select <- reactive({ input$select}) call_data_f <- pbrCalls_Data %>% filter(pbrCalls_Data$village==select()) sum_table <- round(sum(call_data_f$status_match,na.rm = TRUE)/sum(complete.cases(call_data_f$status_match))*100) gauge(sum_table, min = 0, max = 100, symbol = '%', gaugeSectors( success = c(75, 100), warning = c(40, 74), danger = c(0, 39) )) })` When I knit locally, the gauge

R flexdashboard and shiny interactive plot

你说的曾经没有我的故事 提交于 2019-12-25 00:36:47
问题 I am learning flexdashboard, but I dont have clear the structure. I have created a sample dataset to plot in a dashboard a barplot according to the selected variable. The code is the next: --- title: "flexdashboard: Shiny Embedding" output: flexdashboard::flex_dashboard: social: menu source_code: embed runtime: shiny --- ```{r global, include=FALSE} library(tidyverse) ## generate a sample dataset sample<-tbl_df(data.frame(c("City1","City2","City3","City1","City2","City3", "City2","City3"), c(

R looks in the wrong place for html dependency

ぃ、小莉子 提交于 2019-12-24 19:16:56
问题 I am trying to knit a flexdashboard to an html file. My flexdashboard includes leaflet maps. The knit.md file compiles correctly. At the last stage, converting the knit.md to an html file, I get an error. Apparently leaflet is looking for html dependencies in the R 3.3.2 folder, rather than the R 3.4.2 folder. I originally built this flexdashboard months ago on a different machine on which I had R 3.3.2 (although I was using 3.4.1 I believe to build this). So the problem appears to be that

R looks in the wrong place for html dependency

空扰寡人 提交于 2019-12-24 19:13:42
问题 I am trying to knit a flexdashboard to an html file. My flexdashboard includes leaflet maps. The knit.md file compiles correctly. At the last stage, converting the knit.md to an html file, I get an error. Apparently leaflet is looking for html dependencies in the R 3.3.2 folder, rather than the R 3.4.2 folder. I originally built this flexdashboard months ago on a different machine on which I had R 3.3.2 (although I was using 3.4.1 I believe to build this). So the problem appears to be that