diff --git a/README.md b/README.md index 0ab14c5..7bd167a 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,13 @@ curl -sL https://git.io/ISLANDScsv \ barplot

+ + +```sh +# For offline user: Sorts files in a directory by size and shows a bar graph. +ls -l | awk '{print $9, $5}' | sort -nk 2 | uplot bar -d ' ' +``` + ### histogram ```sh @@ -71,6 +78,14 @@ curl -sL https://git.io/AirPassengers \ lineplot

+```sh +# For offline users: Calculates sin values (0-2*pi) and plots a sine wave. +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 +98,12 @@ curl -sL https://git.io/IRIStsv \ scatter

+ +```sh +# For offline users +cat test/fixtures/iris.csv | cut -f1-4 -d, | uplot scatter -H -d, -t IRIS +``` + ### density ```sh @@ -95,6 +116,11 @@ curl -sL https://git.io/IRIStsv \ density

+```sh +# For offline users +cat test/fixtures/iris.csv | cut -f1-4 -d, | uplot density -H -d, -t IRIS +``` + ### boxplot ```sh @@ -107,8 +133,21 @@ curl -sL https://git.io/IRIStsv \ boxplot

+```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 +``` + +Count the number of chromosomes where genes are located. + ```sh cat gencode.v35.annotation.gff3 \ | grep -v '#' | grep 'gene' | cut -f1 \ @@ -119,7 +158,6 @@ cat gencode.v35.annotation.gff3 \ count

-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.