vijaybarve / bdvis

Biodiversity data Visualizations in R
28 stars 12 forks source link

Allow to show average records per day/week/month in tempolar #9

Open jotegui opened 11 years ago

jotegui commented 11 years ago

I think it would be useful to allow the user to add a new parameter to the tempolar function to select if they want to see total records or average records for each day/wek/month. If so, would it be possible to also show the standard deviation of the values in tempolar, to give an impression of the variation of the numbers, as in DOI: 10.1371/journal.pone.0055144.g008

vijaybarve commented 11 years ago

@jotegui How do we calculate Average ?

Average = Total number of records on day of year / number of years these records come from or

Average = Total number of records on day of year / number of years the data is recorded in the data set (irrespective of how many times data was recorded on "that" day of year)

And how do we calculate SD ?

jotegui commented 11 years ago

I would say the average number of records per year is the mean value of the amount of records on a particular day-of-year among years, with a regular value for SD (see picture) screenshot from 2013-08-13 14 56 05 This is the calculation we did for the GBIF.ES paper. The average shows which are the most common days, and the SD gives the idea of how stable are those numbers. For example, in the picture, Jan-1 and Oct-12 have similar values for the average, but the high SD in Oct-12 means samplings efforts might not be consistent Makes sense?

vijaybarve commented 10 years ago

Displays Average records using avg parameter. Need to decide how to display SD.