|
1 | | -# PalmerPenguins |
| 1 | +# PalmerPenguins.jl <a href='https://allisonhorst.github.io/palmerpenguins'><img src='man/figures/logo.png' align="right" height="138.5" /></a> |
2 | 2 |
|
3 | 3 | [](https://github.com/devmotion/PalmerPenguins.jl/actions) |
4 | 4 | [](https://travis-ci.com/devmotion/PalmerPenguins.jl) |
5 | 5 | [](https://codecov.io/gh/devmotion/PalmerPenguins.jl) |
6 | 6 | [](https://coveralls.io/github/devmotion/PalmerPenguins.jl?branch=master) |
| 7 | + |
| 8 | +Load the [Palmer penguins dataset](https://allisonhorst.github.io/palmerpenguins/) in Julia. |
| 9 | + |
| 10 | +## Overview |
| 11 | + |
| 12 | +The [Palmer penguins dataset](https://allisonhorst.github.io/palmerpenguins/) by Allison |
| 13 | +Horst, Alison Hill, and Kristen Gorman is a dataset for data exploration & visualization, |
| 14 | +as an alternative to the Iris dataset. |
| 15 | + |
| 16 | +The dataset contains data for 344 penguins. There are 3 different species of penguins in |
| 17 | +this dataset, collected from 3 islands in the Palmer Archipelago, Antarctica. |
| 18 | + |
| 19 | +Data were collected and made available by |
| 20 | +[Dr. Kristen Gorman](https://www.uaf.edu/cfos/people/faculty/detail/kristen-gorman.php) |
| 21 | +and the [Palmer Station, Antarctica LTER](https://pal.lternet.edu/), a member of the |
| 22 | +[Long Term Ecological Research Network](https://lternet.edu/). |
| 23 | + |
| 24 | +Data are available by |
| 25 | +[CC-0](https://creativecommons.org/share-your-work/public-domain/cc0/) license in |
| 26 | +accordance with the [Palmer Station LTER Data Policy](http://pal.lternet.edu/data/policies) |
| 27 | +and the |
| 28 | +[LTER Data Access Policy for Type I data](https://lternet.edu/data-access-policy/). |
| 29 | + |
| 30 | +More information about the dataset is available in |
| 31 | +[its official documentation](https://allisonhorst.github.io/palmerpenguins/). |
| 32 | + |
| 33 | +## Usage |
| 34 | + |
| 35 | +The dataset can be loaded by |
| 36 | + |
| 37 | +```julia-repl |
| 38 | +julia> using PalmerPenguins |
| 39 | +
|
| 40 | +julia> table = PalmerPenguins.load() |
| 41 | +``` |
| 42 | + |
| 43 | +This will download the dataset once using [DataDeps.jl](https://github.com/oxinabox/DataDeps.jl), |
| 44 | +displaying the information above and making it available for future use. The function |
| 45 | +`PalmerPenguins.load()` returns a |
| 46 | +[`CSV.File`](https://juliadata.github.io/CSV.jl/stable/#CSV.File) object that supports the |
| 47 | +[Tables.jl](https://github.com/JuliaData/Tables.jl) interface. For instance, it can be |
| 48 | +converted to a |
| 49 | +[`DataFrame`](https://juliadata.github.io/DataFrames.jl/stable/man/getting_started/#The-DataFrame-Type-1) |
| 50 | +by executing |
| 51 | + |
| 52 | +```julia-repl |
| 53 | +julia> using DataFrames |
| 54 | +
|
| 55 | +julia> df = DataFrame(table) |
| 56 | +``` |
| 57 | + |
| 58 | +## Bibliography |
| 59 | + |
| 60 | +Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental |
| 61 | +Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3): |
| 62 | +e90081. https://doi.org/10.1371/journal.pone.0090081 |
0 commit comments