Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create "Trend occupancy union-list species" #16

Open
mvarewyck opened this issue May 3, 2022 · 4 comments
Open

Create "Trend occupancy union-list species" #16

mvarewyck opened this issue May 3, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@mvarewyck
Copy link
Collaborator

Could you provide the trias function to create the plot on slide 11 of the mockup

@mvarewyck mvarewyck added the question Further information is requested label May 3, 2022
@SanderDevisscher
Copy link
Collaborator

@mvarewyck its not really a trias function. The graph compares the no infected squares between the baseline & the 1st reporting cycle. I left some code examples in the notes of the mockup.

@mvarewyck
Copy link
Collaborator Author

Screenshot from 2022-05-20 15-56-28

Questions/Notes

  • I don't have the same data as in Sander's example scripts: In the scripts there are csv files. The zenodo links point to shape/geojson files
  • Currently latin name of species in data
  • For t0 data: should we only keep records with 'Accepted' == "Y"? In plot above, we keep all
  • How to make distinction between 'sporadisch' and 'gevestigd' in example plot? Variable 'Accepted' is only available in t0 data
  • For t0 data: can we simply row-bind all records for the 3 years (2016-2020)?. No check for duplicates?
  • How to calculate percentages (currently Aantal)? Total no. of cells fixed over the years? not in t0 data
> sapply(data_t0, function(x) length(x@polygons))
[1] 1670 1607  310

@mvarewyck mvarewyck changed the title Link to trias function for "Trend occupancy union-list species" Create "Trend occupancy union-list species" May 20, 2022
@SanderDevisscher
Copy link
Collaborator

Screenshot from 2022-05-20 15-56-28

Questions/Notes

  • I don't have the same data as in Sander's example scripts: In the scripts there are csv files. The zenodo links point to shape/geojson files

The zenodo files are the official baseline & rapportage => you should use these

  • Currently latin name of species in data

You need a translation key ?

  • For t0 data: should we only keep records with 'Accepted' == "Y"? In plot above, we keep all

You should keep 'Accepted' == "Y" & 'Accepted' == "NEW" these indicate the 10x10km squares provided by europe we considered correct & those we added in. In Case of the rapportage we decided to just overwrite Europe the squares in the t1 are thus all "NEW" or "Y".

  • How to make distinction between 'sporadisch' and 'gevestigd' in example plot? Variable 'Accepted' is only available in t0 data

this is an arbitrary value => @timadriaens which number of squares should be the threshold ? Is this distinction necessary ?

  • For t0 data: can we simply row-bind all records for the 3 years (2016-2020)?. No check for duplicates?

?? the graph should display no unique squares per species for each period (t0 & t1)

  • How to calculate percentages (currently Aantal)? Total no. of cells fixed over the years? not in t0 data

The total no 10x10km squares is 370. Percentages should be calculated compared to 370.

> sapply(data_t0, function(x) length(x@polygons))
[1] 1670 1607  310

@mvarewyck
Copy link
Collaborator Author

mvarewyck commented May 25, 2022

?? the graph should display no unique squares per species for each period (t0 & t1)

I was not looking for unique squares, fixed now. And period is that t0 or t1? Or is period the t0 year? Because in the plot the year is not indicated
So, what I'm doing is removing all duplicate rows in these data and next count frequency of cellcodes per species and source

> head(allData)
                 species source     cellcode
3      Trachemys scripta     t0 10kmE380N310
4    Pseudorasbora parva     t0 10kmE380N311
5   Ludwigia grandiflora     t0 10kmE380N312
6 Myriophyllum aquaticum     t0 10kmE380N312
7  Baccharis halimifolia     t0 10kmE380N313
8     Orconectes limosus     t0 10kmE380N313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants