Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
8Ginette8 committed Feb 7, 2025
1 parent e82a134 commit da22728
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ViewState]
Mode=
Vid=
FolderType=Generic
7 changes: 6 additions & 1 deletion inst/examples/make_ecoregion_help.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ my.eco <- make_ecoregion(env = rst,
nclass = 50)

# Test plot
terra::plot(my.eco)
col_palette = colorRampPalette(c("#a6cee3", "#1f78b4", "#b2df8a", "#33a02c",
"#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00",
"#cab2d6", "#6a3d9a", "#ffff99", "#b15928"))
colcol = col_palette(length(my.eco))
my.eco$color = sample(paste0(colcol,""), length(my.eco), replace = FALSE)
terra::plot(my.eco, col = my.eco$color)

# Downloading in the European Alps the observations of one plant species
obs.arcto <- get_gbif(sp_name = "Arctostaphylos alpinus",
Expand Down
7 changes: 6 additions & 1 deletion man/make_ecoregion.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da22728

Please sign in to comment.