Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shinydashboard and shinytheme?

I've made a dashboard with shinydashboard and really like the ease of making a layout with the package! However, I'd like to use one of the themes from the shinythemes package. I'm familiar with the shinydashboard skins, but they aren't nearly as cool or modern as shinythemes. The shinythemes seem to work well with just shiny, but not with shinydashboard.

Anyone know how to get shinythemes to work with shinydashboard?

Thanks very much!

ie: start of dashboard: doesn't work:

 ui <- dashboardPage( theme = shinytheme("spacelab"),
 dashboardHeader(title = "I want this to look awesome!"),
 dashboardSidebar(sidebarMenu(
like image 324
grapher Avatar asked Jan 20 '17 23:01

grapher


People also ask

What is bs4Dash?

bs4Dash: A 'Bootstrap 4' Version of 'shinydashboard'Make 'Bootstrap 4' Shiny dashboards. Use the full power of 'AdminLTE3', a dashboard template built on top of 'Bootstrap 4' <https://github.com/ColorlibHQ/AdminLTE>. Version: 2.1.0.

How to change shiny app theme?

If you want to quickly test out different themes with an application, you can simply add themeSelector() somewhere to the UI. This will add a select box which lets you choose the theme. It will change the theme without having to reload or restart your app. You can see the theme selector in action here.


1 Answers

There is a package (dashboardthemes) that allows modifying shinydashboard themes. It is pretty straightforward to use.

One of the available skins: enter image description here

Alternatively, if you want to try some new skins go for semantic.dashboard which offers Bootswatch and Semantic-UI themes.

like image 136
epo3 Avatar answered Sep 26 '22 06:09

epo3