All plots are made with R, mainly ggplot2.
Table of Contents:
-
Very naive version... (July 4th, 2019)
Script
-
Minkowski Distance
The Minkowski distance defines the distance between two points in a normed vector space.
$$ X=(x_{1},x_{2},...,x_{n} $$ $$ Y=(y_{1},y_{2},...,y_{n}) $$ $$ D(X,Y)=(\sum_{i=1}^n|x_{i}-y_{i}|^p)^\frac{1}{p} $$ When p = 1 or 2, the Minkowski distance corresponds to the Manhattan distance or the Euclidean distance, respectively.
The plot is a collection of Voronoi diagrams, partitioning the space into sub-spaces based on the distance to a set of pre-defined points/seeds.
The p for Minkowski distance used in each sub-plot is shown below.
0.1 0.4 0.5 0.7 The points 1 (Manhattan) 1.5 2 (Euclidean) 100 -
Blue and yellow | 蓝与黄
Input
-
Addiction and harm of psychoactive drugs | 药物成瘾和危害程度
Data source: Development of a rational scale to assess the harm of drugs of potential misuse. Lancet. 2007
-
Survival curve of 32 human cancers from TCGA | TCGA 32种癌症生存曲线
Higher resolution in pdf
Input