rank_people: Rank Peoples by specified metric

View source: R/rank_people.R

rank_peopleR Documentation

Rank Peoples by specified metric

Description

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

Usage

rank_people(interested = NULL, n = 15)

Arguments

interested

Metric to rank people on. ("height", "mass", "films")

n

Number of results to plot. (default = 15)

Value

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

Examples

## Not run: rank_people(interested = "height"),
rank_people(interested = "mass", n = 18)
## End(Not run)

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