https://github.com/oobianom/nextGenShinyApps-Boilerplate-BlankApp
The nextGenShinyApps package is available on CRAN and can be installed as shown below
install.packages(nextGenShinyApps)
Attach the library to begin using
# library
library(shiny)
library(nextGenShinyApps)
# Define UI
ui <- fluidPage(
# Theme: Select color style from 1-13
style = "6",
# Background: You may specify a background(optional)
custom.bg.color = "lightblue",
# Header: Insert header content using titlePanel ---
header = titlePanel(left = "Showcase the Features of the nextGenShinyApp R package", right = "Image logo"),
# Sidebar: Insert content for sidebar --
sidebar = sidebarPanel(
title = "NextGenShinyApp",
# sample inputs
textInput(
inputId = "caption",
label = "Caption:",
value = "Data Summary 1"
)
),
# Body: Insert anything into the body-------
tags$h2("Basic Moveable Advanced Card"),
wrapper(
altPanel(
card(
title = "Standard card with text and a slider",
# card body content
sliderInput("bins", "Decimal:",
min = 0, max = 100,
value = 23, step = 0.1
)
)
),
mainPanel(
card(
title = "Standard card with Images",
plotOutput(outputId = "distPlot")
)
)
)
)
# Define server content
server <- function(input, output) {
# Sample user-defined sever logic
output$distPlot <- renderPlot({
x <- faithful$waiting
bins <- seq(min(x), max(x), length.out = input$bins + 1)
hist(x,
breaks = bins, col = "#75AADB", border = "white",
xlab = "Waiting time to next eruption (in mins)",
main = input$caption
)
})
}
# Create and initialize the Shiny application
shinyApp(ui, server)
load.example("Card")
load.example("Plotly")
load.example("Rhansometable")
load.example("Plain")
load.example("noSideBar")
load.example("Tab")
load.example("Modal")
load.example("Alert")
load.example("Accordion")