plotRanking | R Documentation |
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.
plotRanking(
data.df,
trim = 25,
maxvars = NULL,
xlim = NULL,
flag = NULL,
mean.pt = FALSE
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.