csv-to-boxplot

0.1.0 • Public • Published

csv-to-boxplot

a small tool to convert CSV-based data (e.g., from a google spreadsheet) into data that can be used by the LaTeX pgfplots library to display boxplots. the tool doesn't feature a sophisticated CSV parser: it expects the input to have a header row and all other values to be numeric and comma-separated.

the tool expects data to be one column per item (e.g., a survey question). see test.csv for an example.

usage

exemplary usage: run # cat test.csv | csv-to-boxplot > boxplot.txt in your terminal. in your TeX document, import the data as follows:

\begin{tikzpicture}
  \begin{axis} [box plot width=2mm]
    \boxplot [forget plot, red] {boxplot.txt}
  \end{axis}
\end{tikzpicture}

/csv-to-boxplot/

    Package Sidebar

    Install

    npm i csv-to-boxplot

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.75 kB

    Total Files

    7

    Last publish

    Collaborators

    • falafeljan