View source: R/rank_vehicles.R
rank_vehicles | R Documentation |
Returns a plot showing the top "n" number of Star Wars vehicles sorted by a specified metric with vehicle name on the y-axis, and the ranking metric on the x-axis.
rank_vehicles(interested = NULL, n = 15)
interested |
Metric to rank vehicles on. ("cost_in_credits", "length", "max_atmosphering_speed", "crew", "passengers", "cargo_capacity", "films") |
n |
number of results to plot. (default = 15) |
A plot with vehicle name on the y-axis and the ranking metric on the x-axis.
## Not run: rank_vehicles(interested = "length"), rank_vehicles(interested = "passengers") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.