Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
â—‹DOI references
-
â—‹Academic publication links
-
â—‹Committers with academic emails
-
â—‹Institutional organization owner
-
â—‹JOSS paper metadata
-
â—‹Scientific vocabulary similarity
Low similarity (13.0%) to scientific vocabulary
Keywords
color-palette
jwst
rstats
space
Last synced: 6 months ago
·
JSON representation
·
Repository
🔠R color palette inspired by the images from the JWST
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
color-palette
jwst
rstats
space
Created over 3 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
License
Citation
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# jwst
[](https://github.com/erictleung/jwst/actions/workflows/R-CMD-check.yaml)
[](https://project-types.github.io/#toy)
The goal of jwst is to be an R color palette inspired by the beautiful images
from the James Webb Space Telescope (JWST).
More on the JWST itself here https://jwst.nasa.gov/index.html.
## Installation
You can install the development version of jwst like so:
```r
remotes::install_github("erictleung/jwst")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
library(jwst)
names(jwst_palettes)
```
You can call the palette in just one command.
```{r palette_carina, fig.height=2, fig.width=6}
jwst("carina")
```

If you want a specific number of colors, you can also do that.
```{r palette_carina_three, fig.height=2, fig.width=6}
jwst("carina", 3)
```
```{r palette_smacs, fig.height=2, fig.width=6}
jwst("smacs")
```

```{r palette_southern_nebula_1, fig.height=2, fig.width=6}
jwst("southern_nebula_1")
```

```{r palette_southern_nebula_2, fig.height=2, fig.width=6}
jwst("southern_nebula_2")
```

```{r palette_stephans, fig.height=2, fig.width=6}
jwst("stephans_quintet")
```

## Generating your own
If you don't like the color here, you can experiment and make your own!
```{r example_generate_palette}
library(imgpalr)
set.seed(1)
(x <- paste0(system.file(package = "jwst"), "/help/figures/carina.jpg"))
image_pal(
x[1],
type = "div",
saturation = c(0.75, 1),
brightness = c(0.75, 1),
plot = TRUE
)
```
List other images available.
```{r}
list.files(paste0(system.file(package = "jwst"), "/help/figures"))
```
See https://github.com/leonawicz/imgpalr for more.
## Acknowledgements
Code largely inspired and attributable to
https://github.com/ciannabp/inauguration.
Color palettes were generated using https://github.com/leonawicz/imgpalr.
Images from NASA's James Webb Space Telescope (JWST)
https://www.nasa.gov/webbfirstimages.
Owner
- Name: Eric Leung
- Login: erictleung
- Kind: user
- Location: New York, NY
- Website: https://erictleung.com
- Repositories: 169
- Profile: https://github.com/erictleung
Data science generalist. Sharing knowledge and optimizing tools for learning and growth. Open-source and open-data advocate. Community learner.
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: jwst
message: 'If you use this software, please cite it as below.'
type: software
authors:
- given-names: Eric
family-names: Leung
orcid: 'https://orcid.org/0000-0002-8724-1872'
url: "https://github.com/erictleung/jwst"
GitHub Events
Total
Last Year
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Eric Leung | e****c@e****m | 15 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total 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
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