-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from EvolEcolGroup/biome4_classes
Treat biome classes as factors
- Loading branch information
Showing
11 changed files
with
128 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
id,category,colour | ||
0,Water bodies,47 61 73 | ||
1,Tropical evergreen forest,11 33 6 | ||
2,Tropical semi-deciduous forest,40 57 3 | ||
3,Tropical deciduous forest/woodland,68 49 12 | ||
4,Temperate deciduous forest,33 92 28 | ||
5,Temperate conifer forest,10 51 44 | ||
6,Warm mixed forest,0 0 40 | ||
7,Cool mixed forest,79 100 79 | ||
8,Cool conifer forest,0 60 9 | ||
9,Cold mixed forest,44 14 20 | ||
10,Evegreen taiga/montane forest,0 12 79 | ||
11,Deciduous taiga/montane forest,40 70 100 | ||
12,Tropical savanna,73 100 21 | ||
13,Tropical xerophytic shrubland,55 63 15 | ||
14,Temperate xerophytic shrubland,10 87 79 | ||
15,Temperate sclerophyll woodland,55 63 15 | ||
16,Temperate broadleaved savanna,45 100 20 | ||
17,Open conifer woodland,100 60 87 | ||
18,Boreal parkland,40 49 100 | ||
19,Tropical grassland,100 73 21 | ||
20,Temperate grassland,100 88 60 | ||
21,Desert,97 100 79 | ||
22,Steppe tundra,90 90 9 | ||
23,Shrub tundra,40 100 60 | ||
24,Dwarf shrub tundra,48 52 29 | ||
25,Prostrate shrub tundra,82 62 60 | ||
26,Cushion forb lichen moss tundra,60 40 100 | ||
27,Barren,73 71 67 | ||
28,Land ice,71 82 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## code to prepare `koeppen_classes` dataset | ||
## source this script in RStudio | ||
biome4_classes <- read.csv("./data-raw/data_files/biome4_classes.csv") | ||
biome4_classes$colour <- sapply(strsplit(biome4_classes$colour, " "), function(x) { | ||
rgb(x[1], x[2], x[3], maxColorValue = 100) | ||
}) | ||
usethis::use_data(biome4_classes, overwrite = TRUE) |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters