Skip to content

Instantly share code, notes, and snippets.

View harryprince's full-sized avatar
💭
I may be slow to respond.

HarryZhu harryprince

💭
I may be slow to respond.
  • Mobike
  • Jilin University of Finance and Economics
View GitHub Profile
@harryprince
harryprince / gist:0e012720c9073c57b1ce2ff1996c391c
Created April 11, 2019 22:36
Remote Sensing in R: extent viz
ext <- extent(c(xmin=116.45902633667,xmax=116.477222442627,ymin=39.940881729126,ymax=39.9528980255127))
ext %>%
sf::st_bbox() %>%
sf::st_as_sfc() %>%
sf::st_set_crs(4326) %>%
sf::st_transform(3857) %>%
sf::st_bbox() %>%
mapview::mapview()
@harryprince
harryprince / README.md
Created June 2, 2016 23:46 — forked from yihui/README.md
A Shiny app based on annyang that responds to voice input

See https://yihui.shinyapps.io/voice for the live demo. Make sure you have turned on your microphone and allow the web browser to have access to it. Credits go to annyang and also to @wch for showing me a minimal Shiny example. You can do four things on the scatterplot using your voice input:

  • say "title something" to change the plot title, e.g. title good morning
  • say "color a color name" to change the color, e.g. color blue
  • say "bigger" or "smaller" to change the size of points
  • say "regression" to add a linear regression line