top_n_plots: Outputs a bar graph giving the top n in frequency in...

Description Usage Arguments Details Value Examples

View source: R/top_n_plots.R

Description

top_n_plots returns a bar graph that shows the top n (n is given as a parameter) labels in a given column in the dataframe with the highest frequency

Usage

1
top_n_plots(df, n, colName, color = "default colors")

Arguments

df

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

n

The number of the labels with the highest frequencies to be included in the graph

colName

The column name that the graph outputs

color

Color of the bars, by default is a different color for each bar

Details

This is a function to create and output a bar graph giving the top n in frequency in specified column of dataframe (columns include 'ScientificName', 'Family', 'Country','State/Province','County').

Value

A bar graph

Examples

1
top_n_plots(ictaluridae,10,"ScientificName")

kdors/rfishnet2 documentation built on May 23, 2020, 7:07 p.m.