This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is a Shiny web application. You can run the application by clicking | |
# the 'Run App' button above. | |
# | |
# Find out more about building applications with Shiny here: | |
# | |
# http://shiny.rstudio.com/ | |
# | |
library(shiny) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install.packages("quantmod") | |
library(quantmod) | |
# devtools::install_github("RamiKrispin/coronavirus", force = TRUE) | |
library(coronavirus) | |
# coronavirus dataset | |
`%>%` <- magrittr::`%>%` | |
df <- coronavirus %>% | |
# dplyr::filter(date == max(date)) %>% | |
dplyr::filter(country == "Indonesia") %>% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t_table <- function(data, dvs, iv, | |
var_equal = TRUE, | |
p_adj = "none", | |
alpha = 0.05, | |
paired = FALSE, | |
wilcoxon = FALSE) { | |
if (!inherits(data, "data.frame")) { | |
stop("data must be a data.frame") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All packages used below must be installed first | |
library(devtools) | |
# devtools::install_github("laresbernardo/lares") | |
library(lares) | |
library(ggplot2) | |
today <- as.character(Sys.Date()) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: How to embed a Shiny app in blogdown | |
author: Antoine Soetewey | |
date: '2020-01-07' | |
slug: how-to-embed-a-shiny-app-in-blogdown | |
categories: [] | |
tags: | |
- Shiny | |
- Web | |
meta_img: blog/how-to-embed-a-shiny-app-in-a-r-markdown-document_files/shiny-app-in-blogdown.jpeg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is a Shiny web application. You can run the application by clicking | |
# the 'Run App' button above. | |
# | |
# Find out more about building applications with Shiny here: | |
# | |
# http://shiny.rstudio.com/ | |
# | |
library(shiny) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
# install.packages("wordcloud2") | |
library(wordcloud2) | |
# install.packages("tm") | |
library(tm) | |
# install.packages("colourpicker") | |
library(colourpicker) | |
ui <- fluidPage( | |
h1("Word Cloud"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is a Shiny web application. You can run the application by clicking | |
# the 'Run App' button above. | |
# | |
# Find out more about building applications with Shiny here: | |
# | |
# http://shiny.rstudio.com/ | |
# | |
library(shiny) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(ggplot2) | |
library(plotly) | |
library(rmarkdown) | |
library(knitr) | |
library(pander) | |
set.seed(123) | |
n <- 100 | |
# Define UI for application that draws a histogram |
NewerOlder