Skip to content

Commit

Permalink
document the plotMeans function and export it.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnathv committed Jul 19, 2016
1 parent 8f96311 commit c2055ce
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export(inAlteryx)
export(listInput)
export(makeInput)
export(numericInput)
export(plotMeans)
export(radioInput)
export(read.Alteryx2)
export(selectInput)
Expand Down
20 changes: 18 additions & 2 deletions R/commonutils.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#########
# John Fox's plotMeans function from the Rcmdr package
#' Plot means by group(s)
#'
#'
#' This function is taken from John Fox's plotMeans function from the Rcmdr package
#' @param response the response variable
#' @param factor1 the first grouping variable
#' @param factor2 the second grouping variable
#' @param error.bar the type of error bars to plot
#' @param level the confidence level to use when plotting conf.int
#' @param xlab x axis label
#' @param ylab y axis label
#' @param legend.lab legend label
#' @param main main title of the plot
#' @param pch plotting character i.e. symbol to use
#' @param lty line type
#' @param col color palette to use
#' @param ... additional arguments. unused currently.
#' @export
plotMeans <- function (response, factor1, factor2, error.bars = c("se", "sd",
"conf.int", "none"), level = 0.95, xlab = deparse(substitute(factor1)),
ylab = paste("mean of", deparse(substitute(response))), legend.lab = deparse(substitute(factor2)),
Expand Down
43 changes: 43 additions & 0 deletions man/plotMeans.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2055ce

Please sign in to comment.