rank_starships: Rank Starships by specified metric

View source: R/rank_starships.R

rank_starshipsR Documentation

Rank Starships by specified metric

Description

Returns a plot showing the top "n" number of Star Wars starships sorted by a specified metric with starship name on the y-axis, and the ranking metric on the x-axis.

Usage

rank_starships(interested = NULL, n = 15)

Arguments

interested

Metric to rank starships on. ("cost_in_credits", "length", "max_atmosphering_speed", "crew", "passengers", "cargo_capacity", "films")

n

Number of results to plot. (default = 15)

Value

A plot with starship name on the y-axis and the ranking metric on the x-axis.

Examples

## Not run: rank_starships(interested = "crew", n = 5),
rank_starships(interested = "max_atmosphering_speed")
## End(Not run)

The0therChad/star.rank documentation built on March 27, 2022, 4:24 p.m.