From f3623bd5049cfd01c561ee5bdc4723428a26a1af Mon Sep 17 00:00:00 2001
From: kojix2 <2xijok@gmail.com>
Date: Sun, 9 Apr 2023 15:48:21 +0900
Subject: [PATCH] Update README.md
Added examples for offline use
---
README.md | 38 +++++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 0ab14c5..6ad7c37 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,11 @@ curl -sL https://git.io/ISLANDScsv \
+```sh
+# For offline users
+ls -l | awk '{print $9, $5}' | sort -nk 2 | uplot bar -d ' '
+```
+
### histogram
```sh
@@ -71,6 +76,14 @@ curl -sL https://git.io/AirPassengers \
+```sh
+# For offline users
+python -c '
+from math import sin, pi
+data = "\n".join(f"{i*pi/50}\t{sin(i*pi/50)}" for i in range(101))
+print(data)' | uplot line
+```
+
### scatter
```sh
@@ -83,6 +96,12 @@ curl -sL https://git.io/IRIStsv \
+
+```sh
+# For offline users
+cat test/fixtures/iris.csv | cut -f1-4 -d, | uplot scatter -H -d, -t IRIS
+```
+
### density
```sh
@@ -95,6 +114,11 @@ curl -sL https://git.io/IRIStsv \
+```sh
+# For offline users
+cat test/fixtures/iris.csv | cut -f1-4 -d, | uplot density -H -d, -t IRIS
+```
+
### boxplot
```sh
@@ -107,8 +131,21 @@ curl -sL https://git.io/IRIStsv \
+```sh
+# For offline users
+cat test/fixtures/iris.csv | cut -f1-4 -d, | uplot boxplot -H -d, -t IRIS
+```
+
### count
+Count processes by user ID.
+
+```sh
+ps -aux | awk '{print $1}' | uplot count
+```
+
+YouPlot counts the number of chromosomes where genes are located.
+
```sh
cat gencode.v35.annotation.gff3 \
| grep -v '#' | grep 'gene' | cut -f1 \
@@ -119,7 +156,6 @@ cat gencode.v35.annotation.gff3 \
-In this example, YouPlot counts the number of chromosomes where genes are located.
* [GENCODE - Human Release](https://www.gencodegenes.org/human/)
Note: `count` is not very fast because it runs in a Ruby script.