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
// chrome snippet | |
var layersMarkers = []; | |
var layersPolygons = []; | |
var layers = [] | |
var geojson = { | |
"type": "FeatureCollection", | |
"features": [] | |
} | |
var output = { | |
"type": "FeatureCollection", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
html { | |
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
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
// https://github.com/d3/d3-scale/blob/11777dac7d4b0b3e229d658aee3257ea67bd5ffa/src/band.js#L32 | |
x.invert = function(_) { | |
const scale = this; | |
const domain = scale.domain; | |
const paddingOuter = scale.paddingOuter(); | |
const paddingInner = scale.paddingInner(); | |
const step = scale.step(); | |
const range = scale.range(); | |
var domainIndex, |
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
plot <- ggplot(data = pf, aes(x = age, y = df)) + | |
geom_point(alpha = 1/100, | |
position = position_jitter(h = 0), | |
color = "darkred") | |
ggplot(data = layer_data(plot, 1), aes(x = x, y = y)) + | |
geom_point(alpha = 1/20) |
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
border:none | |
height:696 | |
license:MIT |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
border:none | |
height:700 |
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(tidyverse) | |
library(ggplot2) | |
library(janitor) | |
library(readxl) | |
filePath <- "data/4247.xlsx" | |
csv <- read_xlsx(filePath, skip = 6) | |
# This function fills empty cells with previous values to the right and then combine them with the row above |
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
border: none | |
height: 650 |
NewerOlder