Skip to content

Instantly share code, notes, and snippets.

timelyportfolio timelyportfolio

Block or report user

Report or block timelyportfolio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@timelyportfolio
timelyportfolio / .block
Last active Sep 13, 2019
DATALEGRAYA in R
View .block
license: mit
@timelyportfolio
timelyportfolio / .block
Last active Aug 29, 2019
vega-lite theme
View .block
license: mit
@timelyportfolio
timelyportfolio / Readme.md
Created Mar 30, 2018
shiny datatables update streaming
View Readme.md

Let's say you have streaming data, and you would like to update a DT::datatable in Shiny without completely re-rendering the table. Here is some code to illustrate how this might be accomplished. Hope it helps.

library(DT)
library(shiny)

ui <- tagList(
  tags$script(HTML(
"
Shiny.addCustomMessageHandler(
@timelyportfolio
timelyportfolio / README.md
Last active Aug 21, 2019
Adding leaflet-timeline to R leaflet
View README.md
@timelyportfolio
timelyportfolio / .block
Last active Aug 18, 2019 — forked from ramnathv/concaveman.R
Using Concaveman in R using V8 with beeswarm (fork)
View .block
license: mit
height: 100
@timelyportfolio
timelyportfolio / Readme.md
Last active Jul 15, 2019
R Shiny and Vue Simple Example
View Readme.md

Shiny == good & Vue == good | Shiny + Vue == good?

Shiny Shiny.shinyapp.$inputValues acts like a store of state. I thought it would be fun to let vuejs react to changes in Shiny input values. This example is intentionally very simple to hopefully self-explain.

vueR

I have assembled vueR package, like d3r and reactR, to offer helpers for vuejs. For this example please install vueR, or just add tags$script(src = "https://unpkg.com/vue@2.2.6") to the tagList().

devtools::install_github("timelyportfolio/vueR")`
@timelyportfolio
timelyportfolio / .block
Last active Jul 14, 2019
vega signal from outside
View .block
license: mit
@timelyportfolio
timelyportfolio / .block
Last active Jul 8, 2019
d3.drag on touch devices
View .block
license: mit
@timelyportfolio
timelyportfolio / code.R
Last active Jul 4, 2019
R sf simple features with quakes data, st_make_grid, dplyr, mapview zcol
View code.R
library(sf)
library(dplyr)
library(mapview)
library(mapedit)
qk_mx <- data.matrix(quakes[,2:1])
qk_mp <- st_multipoint(qk_mx)
qk_sf <- st_sf(st_cast(st_sfc(qk_mp), "POINT"), quakes, crs=4326)
grd <- st_sf(geom=st_make_grid(qk_sf), crs=4326)
@timelyportfolio
timelyportfolio / .block
Created Dec 17, 2017
leaflet + plotly crosstalk no shiny
View .block
license: mit
You can’t perform that action at this time.