diff --git a/R/stateface.r b/R/stateface.r index 32daaa8..8641198 100644 --- a/R/stateface.r +++ b/R/stateface.r @@ -57,6 +57,9 @@ load_stateface <- function() { #' run \code{show_stateface()} to get the filesystem location and then #' load the font manually from there. #' +#' @param nudge_x,nudge_y Horizontal and vertical adjustment to nudge l +#' abels by. Useful for offsetting text from points, particularly +#' on discrete scales. #' @inheritParams ggplot2::geom_text #' @export geom_stateface <- function(mapping = NULL, data = NULL, stat = "identity", diff --git a/man/geom_stateface.Rd b/man/geom_stateface.Rd index 5b9a134..10bfddf 100644 --- a/man/geom_stateface.Rd +++ b/man/geom_stateface.Rd @@ -43,8 +43,9 @@ to the paired geom/stat.} \item{parse}{If TRUE, the labels will be parsed into expressions and displayed as described in ?plotmath} -\item{nudge_x}{Horizontal and vertical adjustment to nudge labels by. -Useful for offsetting text from points, particularly on discrete scales.} +\item{nudge_x, nudge_y}{Horizontal and vertical adjustment to nudge l +abels by. Useful for offsetting text from points, particularly +on discrete scales.} \item{check_overlap}{If \code{TRUE}, text that overlaps previous text in the same layer will not be plotted. A quick and dirty way}