inbo / inbo/ClimateCastR

Create function [plot_current]

Open
#23 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

plot_current

Generate a leaflet map of the current climatic zones, and the % climate match of the species of interest with these zones:
The different species can be selected in the menu on the map.
current_map

Other things to take into account:

  • Plot the region outline on top of the map (see #16)
  • Don't plot the occurrence records on top of the map by default (see #10)
  • When the user defines a region in the function, the leaflet maps should be immediately zoomed in on this region. (see #9)

Checklist

  • maak een nieuw R-bestand
  • sla het R bestand op onder ./R met filenaam is gelijk aan functienaam
  • voorzie een functie titel met #' op regel 1 van je script
  • voorzie een auteur met #' @author
  • voorzie een beschrijving met #' @description
  • voorzie uitleg over de input parameter(s) met #' @param name
  • voorzie uitleg over de output van de functie met #' @returns
  • voorzie minstens 1 voorbeeld van het gebruik van de functie dmv #' @examples
  • voorzie de export - tag dmv #' @export (#14)
  • voer usethis::use_package("packagename", min_version = TRUE) uit in de console voor iedere package die je gebruikt.
  • voer roxygen2::roxygenise() uit in de console
  • voer devtools::check() uit in de console
  • los eventuele errors, warnings en notes1 op
  • maak een pull request met @soriadelva of @SanderDevisscher en eventueel andere relevante gebruikers als reviewer.

1in de mate van het mogelijke

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Create R/plot_current.R for plot_current and first review related issues #16, #10, and #9 to understand the region outline, occurrence-record, and zoom requirements. Use the issue’s map description and checklist as the acceptance criteria, then run roxygen2::roxygenise() and devtools::check(); done means the documented exported function generates the selectable current-climate map and climate-match percentages.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.