Learn R Programming

rvertnet (version 0.0-5)

vertmap: Make a simple map to visualize VertNet data.

Description

Basic function to plot your lat/long data on a map.

Usage

vertmap(input = NULL)

Arguments

input
A data.frame, e.g. from calling vertoccurrence. The data.frame has to have columns named "Latitude" and "Longitude".

Value

  • Map (using ggplot2 package) of points on a world map.

Details

vertmap Takes care of cleaning up the data.frame (removing NA's, etc.) returned from other rvernet functions, and creating the map. This function gives a simple map of your data. You can look at the code behing the function itself if you want to build on it to make a map according to your specfications.

Examples

Run this code
# example 1
out <- vertoccurrence(t="Aquila", num=100) # get some data on golden
vertmap(input = out) # make a map using vertmap

# example 2
out <- vertoccurrence(q="larva",num=100) # get some data
vertmap(input = out) # make a map using vertmap

Run the code above in your browser using DataLab