<p>In this example, YouPlot counts the number of chromosomes where genes are located. * <ahref="https://www.gencodegenes.org/human/">GENCODE - Human Release</a></p>
<p>Note: <code>count</code> is not very fast because it runs in a Ruby script. This is fine in most cases, as long as the data size is small. If you want to visualize huge data, it is faster to use a combination of common Unix commands as shown below.</p>
<td>draw a barplot based on the number of occurrences (slow)</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>colors</td>
<td>color</td>
<td>show the list of available colors</td>
</tr>
</tbody>
</table>
<h3id="label-Output+the+plot">Output the plot</h3>
<ul><li>
<p><code>-o</code></p>
</li><li>
<p>By default, the plot is output to <strong>standard error output</strong>.</p>
</li><li>
<p>If you want to output to standard input, Use hyphen <code>-o -</code> or no argument <code>uplot s -o |</code>.</p>
</li></ul>
<h3id="label-Output+the+input+data">Output the input data</h3>
<ul><li>
<p><code>-O</code></p>
</li><li>
<p>By default, the input data is not shown anywhere.</p>
</li><li>
<p>If you want to pass the input data directly to the standard output, Use hyphen <code>-O -</code> or no argument <code>uplot s -O |</code>.</p>
</li><li>
<p>This is useful when passing data to a subsequent pipeline.</p>
</li></ul>
<h3id="label-Header">Header</h3>
<ul><li>
<p><code>-H</code></p>
</li><li>
<p>If input data contains a header line, you need to specify the <code>-H</code> option.</p>
</li></ul>
<h3id="label-Delimiter">Delimiter</h3>
<ul><li>
<p><code>-d</code></p>
</li><li>
<p>You do not need to use <code>-d</code> option for tab-delimited text since the default value is tab.</p>
</li><li>
<p>To specify a blank space, you can use <code>uplot bar -d '' data.txt</code>.</p>
</li></ul>
<h3id="label-Real-time+data">Real-time data</h3>
<ul><li>
<p><code>-p</code><code>--progress</code></p>
</li><li>
<p>Experimental progressive mode is currently under development.</p>
</li><li>
<p><code>ruby -e 'loop{puts rand(100)}' | uplot line --progress</code></p>
</li></ul>
<h3id="label-Show+detailed+options+for+subcommands">Show detailed options for subcommands</h3>
<ul><li>
<p><code>--help</code></p>
</li><li>
<p>The <code>--help</code> option will show more detailed options for each subcommand.</p>
</li><li>
<p><code>uplot hist --help</code></p>
</li></ul>
<h3id="label-Set+columns+as+x-axis+or+y-axis">Set columns as x-axis or y-axis</h3>
<ul><li>
<p>YouPlot treats the first column as the X axis and the second column as the Y axis. When working with multiple series, the first column is the X axis, the second column is series Y1, the third column is series Y2, and so on.</p>
</li><li>
<p>If you pass only one column of data for <code>line</code> and <code>bar</code>, YouPlot will automatically use a sequential number starting from 1 as the X-axis.</p>
</li><li>
<p><code>--fmt</code></p>
</li><li>
<p><code>--fmt xyy</code><code>--fmt xyxy</code><code>--fmt yx</code> options give you a few more choices. See <code>youplot <command> --help</code> for more details.</p>
</li><li>
<p>The fmt option may be renamed in the future.</p>
</li><li>
<p>The <code>-x</code> and <code>-y</code> options might be used to specify columns in the future.</p>
</li><li>
<p>Use <code>awk '{print $2, $1}'</code> to swap columns. Use <code>paste</code> to concatenate series.</p>