plot_reefish_survey: Plot the world map with location of surveys in Reef Life...

Description Usage Arguments Value Author(s) Examples

Description

From Reef Life Survey social and environmental variables metadata dataframe, this function returns a ggplot2 object. This plot is a world map with centroids of clustered survey locations. The number of surveys in each cluster is symbolised by a color gradient from yellow to red.

Usage

1
plot_reefish_survey(reefishSurveyEnvSocio, clusterDistanceThreshold = 500)

Arguments

reefishSurveyEnvSocio

Dataframe of social environmental data attributed to reef life survey geographical locations. The fields SiteLongitude and SiteLatitude are needed.

clusterDistanceThreshold

A numeric value. Threshold distance (unit: kilometers) to cluster 2 points together. Default value is 500km.

Value

A ggplot2 object. This plot is a world map with centroids of clustered survey locations. The number of surveys in each cluster is symbolised by a color gradient from yellow to red.

Author(s)

Pierre-Edouard GUERIN, Stephanie MANEL

Examples

1
2
3
4
5
6
## load social and environmental data
data(reefishSurveyEnvSocio)
## plot world map distribution of reef life surveys with cluster distance 500km 
plot_reefish_survey(reefishSurveyEnvSocio)
## plot world map distribution of reef life surveys with cluster distance 1000km
plot_reefish_survey(reefishSurveyEnvSocio, 1000)

Grelot/geogendivr documentation built on Sept. 3, 2020, 6:25 p.m.