Learn R Programming

rfishnet2 (version 0.2.0)

plot_records: Plots record count by Scientific Name on a bar graph.

Description

plot_records returns a bar graph showing the number of records for each distinct scientific name in the dataset.

Usage

plot_records(df, top_ten = TRUE, color = TRUE)

Arguments

df

A dataframe in FishNet2 standard format (by using read.csv())

top_ten

Top ten species occurrence counts

color

True if each bar should have a distinct color, FALSE for grey bars. Default: TRUE

Value

Plot of record count by Scientific Name on a bar graph

Details

This is a function to visualize data by Scientific Name from FishNet2 search query. A dataframe is input from a standard FishNet2 search query.

Examples

Run this code
# NOT RUN {
plot_records(louisiana)
# }

Run the code above in your browser using DataLab