This is a d3 map using topojson files derived from shapefiles from the datameet/maps repo.
Many thanks to authors of these awesome code samples.
vioplot2 <- function (x, ..., range = 1.5, h = NULL, ylim = NULL, names = NULL, | |
horizontal = FALSE, col = "magenta", border = "black", lty = 1, | |
lwd = 1, rectCol = "black", colMed = "white", pchMed = 19, | |
at, add = FALSE, wex = 1, drawRect = TRUE, side="both") | |
{ | |
datas <- list(x, ...) | |
n <- length(datas) | |
if (missing(at)) | |
at <- 1:n | |
upper <- vector(mode = "numeric", length = n) |
This is a d3 map using topojson files derived from shapefiles from the datameet/maps repo.
Many thanks to authors of these awesome code samples.
license: MIT | |
border: no |
#!/bin/bash | |
function __RETURN_CODE { | |
RETCODE=$? | |
case $RETCODE in | |
0) RETSTR=" 😈 " ;; | |
1) RETSTR=" 😭 " ;; | |
2) RETSTR=" 😱 " ;; |
# Import files under folder name fawn | |
# It is very important to include the option (full.names=TRUE). It it is not included | |
# then you will get the error something like | |
# "Error in file(file, "rt") : cannot open the connection In addition: Warning message: | |
#In file(file, "rt") : cannot open file 'FAWN_2002.csv': No such file or directory | |
mydata=ldply(list.files(path="data/fawn/",pattern="csv",full.names=TRUE),function(filename) { | |
dum=read.csv(filename) | |
dum$filename=filename | |
return(dum) |
import java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.SystemColor; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.SwingUtilities; | |
import javax.swing.border.EmptyBorder; |