red-data-tools / YouPlot

A command line tool that draw plots on the terminal.
MIT License
4.04k stars 60 forks source link

test data? #41

Closed zhangwenda0518 closed 1 year ago

zhangwenda0518 commented 1 year ago

Because of network reasons, I can't download the sample data using curl. Can you provide it in github conveniently? Thank you.

kojix2 commented 1 year ago

Hi @zhangwenda0518

IRIStsv.tsv is included in the test/fixtures directory. Other files are from RDatasets and could be redistributed in the repository if needed, but we are not currently doing so. We are very pleased to hear about your use case in an environment where the internet is unavailable. We will consider attaching files to the repository for the convenience of verifying that it works correctly in such an environment.

kojix2 commented 1 year ago

Four datasets are used in the README

  1. Areas of the World's Major Landmasses data (https://git.io/ISLANDScsv)
  2. AirPassengers data (https://git.io/AirPassengers)
  3. IRIS dataset (https://git.io/IRIStsv)
  4. GENCODE - Human Release (https://www.gencodegenes.org/human/)

Of these, GENCODE gene data cannot be included in the repository due to its large size. (I checked the term-of-use, and to my surprise, there is no language that explicitly prohibits redistribution.) The third IRIS data set is already included.

The rest are the first Islands dataset and the second AirPassengers dataset. I have looked into the licensing of these datasets and have not found a clear answer. However, since they are generally distributed with R, it seems that the license is considered to be GPL.

This makes it difficult to include these datasets in the repository. If the GPL license applies, then YouPlot must also be GPL licensed.

Instead, I will consider adding the following one-liner to the README ls -l | awk '{print $9, $5}' | uplot bar -d ' '