Skip to content

Instantly share code, notes, and snippets.

View MokeEire's full-sized avatar

Mark MokeEire

View GitHub Profile
@strboul
strboul / shiny-html-table.R
Created June 5, 2019 18:27
Shiny create HTML tables #htmltools #tags #table
library(shiny)
ui <- fluidPage(
tags$head(
tags$style(HTML("
body {
margin-right: 10em;
@cecilialee
cecilialee / modal_dialog_input_1.R
Last active November 4, 2022 01:47
Modal dialog prompt for inputs in Shiny. #r #shiny
library(shiny)
shinyApp(
ui = basicPage(
actionButton("show", "Show modal dialog"),
verbatimTextOutput("print")
),
server = function(input, output) {
@d3indepth
d3indepth / .block
Last active April 25, 2024 22:26
d3.geoInterpolate example
license: gpl-3.0
height: 420
border: no
@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@lmullen
lmullen / shapefile.r
Last active January 26, 2022 22:07
How I use shapefiles in R with ggplot2 and RGDAL
library(rgdal) # R wrapper around GDAL/OGR
library(ggplot2) # for general plotting
library(ggmaps) # for fortifying shapefiles
# First read in the shapefile, using the path to the shapefile and the shapefile name minus the
# extension as arguments
shapefile <- readOGR("path/to/shapefile/", "name_of_shapefile")
# Next the shapefile has to be converted to a dataframe for use in ggplot2
shapefile_df <- fortify(shapefile)