Skip to content

Commit

Permalink
finetuning, testing images
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Mar 6, 2024
1 parent 5688d89 commit 1e766d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
1 change: 0 additions & 1 deletion R/c4a_gui.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ c4a_gui = function(type = "cat", n = NA, series = "all") {


shiny::addResourcePath(prefix = "imgResources", directoryPath = system.file("man/figures", package = "cols4all"))
shiny::addResourcePath(prefix = "imgResources", directoryPath = system.file("img", package = "cols4all"))

#############################
## Catelogue tab
Expand Down
4 changes: 2 additions & 2 deletions R/onLoad.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ do_cellspec = function(lst) {

tc = list(cbfriendly = list('NA' = "",
'0' = "",
'2' = list("☺☺", extra_css="font-size: 80%;", tooltip = "Colorblind-friendly!", escape = FALSE),
'1' = list("☺", extra_css="font-size: 80%;", tooltip = "Colorblind-friendly!", escape = FALSE),
'2' = list("☺☺", extra_css="font-size: 80%;", tooltip = "Extra colorblind-friendly! Also for points and lines", escape = FALSE),
'1' = list("☺", extra_css="font-size: 80%;", tooltip = "Colorblind-friendly! Be careful with points and lines", escape = FALSE),
'-1' = list("👀", extra_css ="font-size: 60%;", tooltip = "Be careful! Some colors are hard to distinguish by color blind people (see tab 'Color Blind Friendliness'", escape = FALSE)),
chroma = list('NA' = "",
'H' = list("🕶", tooltip = "Vivid colors (high chroma): ideal for small important objects to stand out (e.g. markers on a map), but less suited for space filling visualizations (see tab 'HCL Analysis')", escape = FALSE),
Expand Down
29 changes: 1 addition & 28 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The main tool is a dashboard, which is started with:
c4a_gui()
```

[<img src="figures/cols4all_table3.png" width="650"/>](figures/cols4all_table3.png)
[<img src="vignettes/dash-3.png" width="650"/>](vignettes/dash-3.png)


What types and series are available?
Expand Down Expand Up @@ -212,30 +212,3 @@ There are a few other pacakges with a large collection of color palettes, in par
* Do you have ideas for improvement how to measure palette properties?

Let us know! (via github issues)


## Bonus: 2568 palettes from **paletteer**

The R package [**paletteer**](https://github.com/EmilHvitfeldt/paletteer) contains 2568 from 70 other R packages. These have been converted to data for **cols4all** [(script)](https://github.com/mtennekes/cols4all/blob/main/build/build_paletteer.R)

These can be loaded and analysed as follows:

```{r}
paletteer_data = readRDS(url("https://github.com/mtennekes/cols4all/releases/download/v0.6/paletteer.rds","rb"))
c4a_sysdata_import(paletteer_data)
```

Note that we use `c4a_sysdata_import` rather than `c4a_load` because we want to replace all the palette data to avoid overlap and conflicts with the palettes already included in **cols4all**.


```{r}
c4a_overview()
```

```{r, eval=FALSE}
c4a_gui()
```

![https://user-images.githubusercontent.com/2444081/216455415-de676d12-8e94-4917-8adc-8ca1e6ac4df7.png](https://user-images.githubusercontent.com/2444081/216455415-de676d12-8e94-4917-8adc-8ca1e6ac4df7.png)

Note that this dashboard is not particularly fast (so grab a coffee:-))

0 comments on commit 1e766d3

Please sign in to comment.