Description Usage Arguments Value Author(s) Examples
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.
1 | plot_reefish_survey(reefishSurveyEnvSocio, clusterDistanceThreshold = 500)
|
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. |
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.
Pierre-Edouard GUERIN, Stephanie MANEL
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.