Description Usage Arguments Details Value Author(s) Examples
Checks input parameters and sorts the data
1 |
data |
the dataset to be analysed |
weight |
a variable for weighting the individual items, the default is for every item to be weighted equally |
v1 |
the variable specifying the start value in the comparison |
v2 |
the variable specifying the end value in the comparison |
levs |
up to three grouping variables to define the plot levels in order from highest to lowest |
sortLev |
how the grouping variables named in levs are to be sorted. Each entry must be one of "orig", "base", "final", "perc", "abs" (i.e., no sorting, sorting by initial value, sorting by final value, sorting by percentage change, sorting by absolute change). |
reverse |
whether a sorting is to be reversed or not. Each entry must be TRUE or FALSE (the default)and is set separately for each level. |
This function draws UpAndDown plots showing percentage and absolute changes for up to three levels. There are a number of options for sorting the data. If a level is nested, then it is sorted within the next highest level. If a level is not nested, then it is sorted as if it were the top level.
levs |
the variables specifying the grouping levels for the plot |
sortLev |
the sorting method used for each plot level |
reverse |
whether any sortings should be reversed |
hx |
a summary of the nesting of the grouping variables |
lgv |
the numbers of categories in the grouping variables |
data |
an extended version of the dataset comprising the original variables and the derived absolute and percentage changes for the different levels specified in levs. The levels are sorted according to the sortLev settings chosen and the corresponding percentages. |
Antony Unwin unwin@math.uni-augsburg.de
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.