lterpalettefinder
Extract Color Palettes from Photos and Pick Official LTER Palettes
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.5%) to scientific vocabulary
Keywords
color-palette-generator
data-science
r
r-package
Last synced: 10 months ago
·
JSON representation
Repository
Extract Color Palettes from Photos and Pick Official LTER Palettes
Basic Info
- Host: GitHub
- Owner: lter
- License: other
- Language: R
- Default Branch: main
- Homepage: https://lter.github.io/lterpalettefinder/
- Size: 58 MB
Statistics
- Stars: 26
- Watchers: 2
- Forks: 5
- Open Issues: 0
- Releases: 2
Topics
color-palette-generator
data-science
r
r-package
Created about 4 years ago
· Last pushed about 3 years ago
Metadata Files
Readme
Changelog
License
README.Rmd
--- output: github_document ---```{r, include = FALSE} knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.path = "man/figures/README-") ``` # `lterpalettefinder` - Extract Color Palettes from Photos and Pick Official LTER Palettes [](https://github.com/lter/lterpalettefinder/actions) [](https://cran.r-project.org/package=lterpalettefinder)   The goal of `lterpalettefinder` is to provide high quality color palettes derived from photos at Long Term Ecological Research (LTER) sites. This allows users to create beautiful graphics that have close visual ties to photos from the places where data were collected. This package also allows users to generate their own palettes from any photo (PNG, JPEG, TIFF, or HEIC) if the current palettes in the function do not meet their needs. For more information on the LTER Network, check out [our website](https://lternet.edu/)! ## Installation You can install the development version of `lterpalettefinder` from [GitHub](https://github.com/) with: ``` r # install.packages("devtools") devtools::install_github("lter/lterpalettefinder") ``` ## R Shiny App To help demonstrate some of the functionalities of `lterpalettefinder` we have created a [standalone R Shiny app](https://cosima.nceas.ucsb.edu/lterpalettefinder-shiny/) that allows for extracting a palette and demonstrating it entirely through a browser. While we developed this app primarily to support non-R users interested in `lterpalettefinder` we hope it is interesting and valuable to R experts as well! The GitHub repo for the Shiny app can be found [here](https://github.com/lter/lterpalettefinder-shiny). ## Functions This package currently includes the following functions: ### Use an Existing Palette - **`palette_find`** returns "official" palette(s) that we have already created that meet criteria you specify ### Create Your Own Palette - **`palette_extract`** extracts 25 colors' hexadecimal codes from a picture of your choosing (PNG, JPEG, TIFF, and HEIC formats are currently supported) - **`palette_sort`** sorts output of `palette_extract` by hue and saturation to approximate how human eyes group colors - **`palette_subsample`** randomly picks a user-specified number of hexadecimal codes from a vector of such codes ### Demonstrate a Palette - **`palette_demo`** creates an exploratory **base R** graph from a vector of hexadecimal codes (like that returned by either `palette_extract`, `..._sort`, or `..._subsample`) and provides an option to export that plot if desired - **`palette_ggdemo`** creates an exploratory **`ggplot2`** graph from a vector of hexadecimal codes (like that returned by either `palette_extract`, `..._sort`, or `..._subsample`) Note that the vector of hexadecimal codes provided by `palette_find` when *only one* official palette meets criteria set by user will also be accepted by either `palette_demo` or `...ggdemo` ## Acknowledgements Creation of this package was funded by National Science Foundation grant [#1929393](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1929393) awarded to F. Davis, J. Caselle, and M. Downs. [Gabriel De La Rosa](https://www.gabrieldelarosa.com/) designed our hex logo and provided valuable feedback on early versions of the package. Thanks also to the whole LTER Network Office team and the broader NCEAS community! ## Palette Examples These palette examples were generated from photos at LTER sites. ### [Santa Barbara Coastal LTER](https://sbclter.msi.ucsb.edu/) + `palette_demo` **Image** | **Palette** :-------------:|:------------:
|
### [Arctic LTER](https://arc-lter.ecosystems.mbl.edu/) + `palette_ggdemo` **Image** | **Palette** :-------------:|:------------:
|
### [Kellogg Biological Station LTER](https://lter.kbs.msu.edu/) + `palette_demo` **Image** | **Palette** :-------------:|:------------:
|
![]()
Owner
- Name: Long Term Ecological Research Network
- Login: lter
- Kind: organization
- Location: United States
- Website: http://www.lternet.edu
- Twitter: uslter
- Repositories: 68
- Profile: https://github.com/lter
Projects in this organization support ecological research, coordination, and communication by and related to the LTER Network.
GitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 3
- Total pull requests: 4
- Average time to close issues: 6 days
- Average time to close pull requests: about 4 hours
- Total issue authors: 2
- Total pull request authors: 3
- Average comments per issue: 3.67
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- SungManhin (2)
- njtierney (1)
Pull Request Authors
- njlyon0 (2)
- brunj7 (1)
- gdlr (1)
Top Labels
Issue Labels
bug (2)
documentation (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 233 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: lterpalettefinder
Extract Color Palettes from Photos and Pick Official LTER Palettes
- Documentation: http://cran.r-project.org/web/packages/lterpalettefinder/lterpalettefinder.pdf
- License: BSD_3_clause + file LICENSE
-
Latest release: 1.1.0
published over 3 years ago
Rankings
Stargazers count: 11.6%
Forks count: 14.9%
Dependent packages count: 29.8%
Average: 31.2%
Dependent repos count: 35.5%
Downloads: 64.4%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.5 depends
- dplyr * imports
- ggplot2 * imports
- grDevices * imports
- graphics * imports
- jpeg * imports
- magick * imports
- magrittr * imports
- png * imports
- stats * imports
- tidyr * imports
- tiff * imports
- tools * imports
- knitr * suggests
- rmarkdown * suggests
.github/workflows/check-standard.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
```{r, include = FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = "#>",
fig.path = "man/figures/README-")
```
# `lterpalettefinder` - Extract Color Palettes from Photos and Pick Official LTER Palettes
[](https://github.com/lter/lterpalettefinder/actions)
[](https://cran.r-project.org/package=lterpalettefinder)


The goal of `lterpalettefinder` is to provide high quality color palettes derived from photos at Long Term Ecological Research (LTER) sites. This allows users to create beautiful graphics that have close visual ties to photos from the places where data were collected. This package also allows users to generate their own palettes from any photo (PNG, JPEG, TIFF, or HEIC) if the current palettes in the function do not meet their needs. For more information on the LTER Network, check out [our website](https://lternet.edu/)!
## Installation
You can install the development version of `lterpalettefinder` from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("lter/lterpalettefinder")
```
## R Shiny App
To help demonstrate some of the functionalities of `lterpalettefinder` we have created a [standalone R Shiny app](https://cosima.nceas.ucsb.edu/lterpalettefinder-shiny/) that allows for extracting a palette and demonstrating it entirely through a browser. While we developed this app primarily to support non-R users interested in `lterpalettefinder` we hope it is interesting and valuable to R experts as well! The GitHub repo for the Shiny app can be found [here](https://github.com/lter/lterpalettefinder-shiny).
## Functions
This package currently includes the following functions:
### Use an Existing Palette
- **`palette_find`** returns "official" palette(s) that we have already created that meet criteria you specify
### Create Your Own Palette
- **`palette_extract`** extracts 25 colors' hexadecimal codes from a picture of your choosing (PNG, JPEG, TIFF, and HEIC formats are currently supported)
- **`palette_sort`** sorts output of `palette_extract` by hue and saturation to approximate how human eyes group colors
- **`palette_subsample`** randomly picks a user-specified number of hexadecimal codes from a vector of such codes
### Demonstrate a Palette
- **`palette_demo`** creates an exploratory **base R** graph from a vector of hexadecimal codes (like that returned by either `palette_extract`, `..._sort`, or `..._subsample`) and provides an option to export that plot if desired
- **`palette_ggdemo`** creates an exploratory **`ggplot2`** graph from a vector of hexadecimal codes (like that returned by either `palette_extract`, `..._sort`, or `..._subsample`)
Note that the vector of hexadecimal codes provided by `palette_find` when *only one* official palette meets criteria set by user will also be accepted by either `palette_demo` or `...ggdemo`
## Acknowledgements
Creation of this package was funded by National Science Foundation grant [#1929393](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1929393) awarded to F. Davis, J. Caselle, and M. Downs.
[Gabriel De La Rosa](https://www.gabrieldelarosa.com/) designed our hex logo and provided valuable feedback on early versions of the package.
Thanks also to the whole LTER Network Office team and the broader NCEAS community!
## Palette Examples
These palette examples were generated from photos at LTER sites.
### [Santa Barbara Coastal LTER](https://sbclter.msi.ucsb.edu/) + `palette_demo`
**Image** | **Palette**
:-------------:|:------------:
|
### [Arctic LTER](https://arc-lter.ecosystems.mbl.edu/) + `palette_ggdemo`
**Image** | **Palette**
:-------------:|:------------:
|
### [Kellogg Biological Station LTER](https://lter.kbs.msu.edu/) + `palette_demo`
**Image** | **Palette**
:-------------:|:------------:
|