plotRanking: plotRanking

plotRankingR Documentation

plotRanking

Description

This function generates a plot showing range and medians for columns in a table, ranked by median or mean. Original function created for the SPATFunctions Package, but adapted here to customize formatting for report figures and avoid adding a dependency.

Usage

plotRanking(
  data.df,
  trim = 25,
  maxvars = NULL,
  xlim = NULL,
  flag = NULL,
  mean.pt = FALSE
)

Arguments

data.df

a data frame where each column is a set of values. Column labels become plot labels

trim

an integer value between 0 and 49 to specify the percentile to be plotted for the whiskers (e.g. trim = 25 plots upper/lower quartiles).

maxvars

integer specifying the maximum number of items to plot (e.g. 30 = plot top 30)

xlim

vector to specify the range for the horizontal axis

flag

optional text string specifying a column to highlight inthe ranked plot (e.g. a Stock Name)

mean.pt

if TRUE, show mean instead of median.


SOLV-Code/RapidRicker documentation built on Jan. 14, 2025, 9:36 a.m.