View source: R/np_data_processing.R
prepBarData | R Documentation |
Processess the input data, factors, and options to produce summary data for drawing bar plots
prepBarData(
x,
by,
errorMultiple = 1,
upperErrorFun = "sd",
lowerErrorFun = upperErrorFun,
aggFunction = "mean",
stack = FALSE,
subgroup = FALSE
)
x |
list; a list object returned by |
by |
factor or dataframe of factors; One or more factors that control how the data is grouped. The first column is the primary grouping factor and the second and thrid columns are used for sub-grouping and/or stacking as needed. |
errorMultiple |
numeric; How many standard errors/deviations should be represented by the error bars. |
upperErrorFun |
character string; Determines how the error barse are calculated. Options are |
lowerErrorFun |
character; A character vector for the primary group names |
aggFunction |
character string; An string naming the function to be used to aggregate the grouped data. Typically should be either |
stack |
logical; Should one of the factors in |
subgroup |
logical; If |
todo<-1
niceBar
, boot95ci
, drawBar
todo<-1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.