diff --git a/R/geom_node_text.R b/R/geom_node_text.R index 2428cc54..3fd5eb47 100644 --- a/R/geom_node_text.R +++ b/R/geom_node_text.R @@ -82,7 +82,9 @@ geom_node_text <- function(mapping = NULL, data = NULL, position = 'identity', #' @rdname geom_node_text #' #' @inheritParams ggplot2::geom_label -#' +#' @param richtext whether to parse markdown/CSS in the text label like +#' `ggtext::geom_richtext()`. +#' #' @importFrom ggrepel GeomLabelRepel #' @export #' @@ -91,7 +93,7 @@ geom_node_label <- function(mapping = NULL, data = NULL, position = 'identity', label.padding = unit(0.25, 'lines'), label.r = unit(0.15, 'lines'), label.size = 0.25, show.legend = NA, - repel = FALSE, ...) { + repel = FALSE, richtext = TRUE, ...) { if (!missing(nudge_x) || !missing(nudge_y)) { if (!missing(position)) { cli::cli_abort(c( @@ -107,6 +109,8 @@ geom_node_label <- function(mapping = NULL, data = NULL, position = 'identity', ) if (repel) { geom <- GeomLabelRepel + } else if (richtext) { + geom <- ggtext::GeomRichText } else { geom <- GeomLabel } diff --git a/man/geom_axis_hive.Rd b/man/geom_axis_hive.Rd index 0b9ec3be..c3aaac7b 100644 --- a/man/geom_axis_hive.Rd +++ b/man/geom_axis_hive.Rd @@ -15,10 +15,10 @@ geom_axis_hive( ) } \arguments{ -\item{mapping}{Set of aesthetic mappings created by \code{\link[ggplot2:aes]{aes()}}. If specified and -\code{inherit.aes = TRUE} (the default), it is combined with the default mapping -at the top level of the plot. You must supply \code{mapping} if there is no plot -mapping.} +\item{mapping}{Set of aesthetic mappings created by \code{\link[ggplot2:aes]{aes()}} or +\code{\link[ggplot2:aes_]{aes_()}}. If specified and \code{inherit.aes = TRUE} (the +default), it is combined with the default mapping at the top level of the +plot. You must supply \code{mapping} if there is no plot mapping.} \item{data}{The data to be displayed in this layer. There are three options: @@ -35,10 +35,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{label}{Should the axes be labelled. Defaults to \code{TRUE}} diff --git a/man/geom_conn_bundle.Rd b/man/geom_conn_bundle.Rd index 7e4016bc..a515494a 100644 --- a/man/geom_conn_bundle.Rd +++ b/man/geom_conn_bundle.Rd @@ -49,10 +49,8 @@ data.} \item{data}{The result of a call to \code{\link[=get_con]{get_con()}}} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_arc.Rd b/man/geom_edge_arc.Rd index ac69c107..e5c3402e 100644 --- a/man/geom_edge_arc.Rd +++ b/man/geom_edge_arc.Rd @@ -77,10 +77,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_bend.Rd b/man/geom_edge_bend.Rd index 3ff2c5d9..a4b0e54b 100644 --- a/man/geom_edge_bend.Rd +++ b/man/geom_edge_bend.Rd @@ -74,10 +74,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_density.Rd b/man/geom_edge_density.Rd index aae52013..fa9df4f1 100644 --- a/man/geom_edge_density.Rd +++ b/man/geom_edge_density.Rd @@ -23,10 +23,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/geom_edge_diagonal.Rd b/man/geom_edge_diagonal.Rd index b3224f86..290e0f7a 100644 --- a/man/geom_edge_diagonal.Rd +++ b/man/geom_edge_diagonal.Rd @@ -74,10 +74,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_elbow.Rd b/man/geom_edge_elbow.Rd index 581ad9b0..89362c48 100644 --- a/man/geom_edge_elbow.Rd +++ b/man/geom_edge_elbow.Rd @@ -73,10 +73,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_fan.Rd b/man/geom_edge_fan.Rd index 856db78a..36b24d95 100644 --- a/man/geom_edge_fan.Rd +++ b/man/geom_edge_fan.Rd @@ -74,10 +74,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_hive.Rd b/man/geom_edge_hive.Rd index 9a7aa148..a87da131 100644 --- a/man/geom_edge_hive.Rd +++ b/man/geom_edge_hive.Rd @@ -74,10 +74,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_link.Rd b/man/geom_edge_link.Rd index ced90e96..1d5e42f8 100644 --- a/man/geom_edge_link.Rd +++ b/man/geom_edge_link.Rd @@ -68,10 +68,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_loop.Rd b/man/geom_edge_loop.Rd index 71ffdb66..957e31b9 100644 --- a/man/geom_edge_loop.Rd +++ b/man/geom_edge_loop.Rd @@ -46,10 +46,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_parallel.Rd b/man/geom_edge_parallel.Rd index 8eb6292a..ebcf56d1 100644 --- a/man/geom_edge_parallel.Rd +++ b/man/geom_edge_parallel.Rd @@ -71,10 +71,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{arrow}{Arrow specification, as created by \code{\link[grid:arrow]{grid::arrow()}}.} diff --git a/man/geom_edge_point.Rd b/man/geom_edge_point.Rd index 4e8ad9c5..2e035d6e 100644 --- a/man/geom_edge_point.Rd +++ b/man/geom_edge_point.Rd @@ -23,10 +23,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{mirror}{Logical. Should edge points be duplicated on both sides of the diagonal. Intended for undirected graphs. Default to \code{FALSE}} diff --git a/man/geom_edge_span.Rd b/man/geom_edge_span.Rd index 788fbf13..37d31825 100644 --- a/man/geom_edge_span.Rd +++ b/man/geom_edge_span.Rd @@ -71,10 +71,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{end_shape}{The adornment to put at the ends of the span. The naming follows the conventions of the shape aesthetic in \code{\link[ggplot2:geom_point]{ggplot2::geom_point()}}} diff --git a/man/geom_edge_tile.Rd b/man/geom_edge_tile.Rd index 2688afee..d06af61f 100644 --- a/man/geom_edge_tile.Rd +++ b/man/geom_edge_tile.Rd @@ -23,10 +23,8 @@ data.} giving edges in correct format (see details for for guidance on the format). See \code{\link[=get_edges]{get_edges()}} for more details on edge extraction.} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{mirror}{Logical. Should edge points be duplicated on both sides of the diagonal. Intended for undirected graphs. Default to \code{FALSE}} diff --git a/man/geom_node_arc_bar.Rd b/man/geom_node_arc_bar.Rd index a3323615..79efd77c 100644 --- a/man/geom_node_arc_bar.Rd +++ b/man/geom_node_arc_bar.Rd @@ -32,10 +32,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/geom_node_circle.Rd b/man/geom_node_circle.Rd index 16bc508a..8618d30a 100644 --- a/man/geom_node_circle.Rd +++ b/man/geom_node_circle.Rd @@ -32,10 +32,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/geom_node_point.Rd b/man/geom_node_point.Rd index 68fdad33..e0673d69 100644 --- a/man/geom_node_point.Rd +++ b/man/geom_node_point.Rd @@ -32,10 +32,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/geom_node_range.Rd b/man/geom_node_range.Rd index e3d36049..580d8d8c 100644 --- a/man/geom_node_range.Rd +++ b/man/geom_node_range.Rd @@ -32,10 +32,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/geom_node_text.Rd b/man/geom_node_text.Rd index e4cb89a3..985cbd5f 100644 --- a/man/geom_node_text.Rd +++ b/man/geom_node_text.Rd @@ -30,6 +30,7 @@ geom_node_label( label.size = 0.25, show.legend = NA, repel = FALSE, + richtext = TRUE, ... ) } @@ -89,6 +90,9 @@ to the paired geom/stat.} \item{label.r}{Radius of rounded corners. Defaults to 0.15 lines.} \item{label.size}{Size of label border, in mm.} + +\item{richtext}{whether to parse markdown/CSS in the text label like +\code{ggtext::geom_richtext()}.} } \description{ These geoms are equivalent in functionality to \code{\link[ggplot2:geom_text]{ggplot2::geom_text()}} and diff --git a/man/geom_node_tile.Rd b/man/geom_node_tile.Rd index 029846a9..3bc7bbba 100644 --- a/man/geom_node_tile.Rd +++ b/man/geom_node_tile.Rd @@ -32,10 +32,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/geom_node_voronoi.Rd b/man/geom_node_voronoi.Rd index e195c911..9fb5dbe9 100644 --- a/man/geom_node_voronoi.Rd +++ b/man/geom_node_voronoi.Rd @@ -39,10 +39,8 @@ the plot data. The return value must be a \code{data.frame}, and will be used as the layer data. A \code{function} can be created from a \code{formula} (e.g. \code{~ head(.x, 10)}).} -\item{position}{Position adjustment, either as a string naming the adjustment -(e.g. \code{"jitter"} to use \code{position_jitter}), or the result of a call to a -position adjustment function. Use the latter if you need to change the -settings of the adjustment.} +\item{position}{Position adjustment, either as a string, or the result of +a call to a position adjustment function.} \item{show.legend}{logical. Should this layer be included in the legends? \code{NA}, the default, includes if any aesthetics are mapped. diff --git a/man/guide_edge_colourbar.Rd b/man/guide_edge_colourbar.Rd index 71dca8d9..1915e9c2 100644 --- a/man/guide_edge_colourbar.Rd +++ b/man/guide_edge_colourbar.Rd @@ -36,8 +36,7 @@ label. One of "top", "bottom" (default for horizontal guide), "left", or object of \code{\link[ggplot2:element_text]{element_text()}} is expected. By default, the theme is specified by \code{legend.text} in \code{\link[ggplot2:theme]{theme()}}.} \item{\code{label.hjust}}{A numeric specifying horizontal justification of the -label text. The default for standard text is 0 (left-aligned) and 1 -(right-aligned) for expressions.} +label text.} \item{\code{label.vjust}}{A numeric specifying vertical justification of the label text.} \item{\code{barwidth}}{A numeric or a \code{\link[grid:unit]{grid::unit()}} object specifying @@ -55,14 +54,13 @@ raster image.} \item{\code{frame.colour}}{A string specifying the colour of the frame drawn around the bar. If \code{NULL} (the default), no frame is drawn.} \item{\code{frame.linewidth}}{A numeric specifying the width of the frame -drawn around the bar in millimetres.} +drawn around the bar.} \item{\code{frame.linetype}}{A numeric specifying the linetype of the frame drawn around the bar.} \item{\code{ticks}}{A logical specifying if tick marks on the colourbar should be visible.} \item{\code{ticks.colour}}{A string specifying the colour of the tick marks.} - \item{\code{ticks.linewidth}}{A numeric specifying the width of the tick marks in -millimetres.} + \item{\code{ticks.linewidth}}{A numeric specifying the width of the tick marks.} \item{\code{draw.ulim}}{A logical specifying if the upper limit tick marks should be visible.} \item{\code{draw.llim}}{A logical specifying if the lower limit tick marks should diff --git a/man/guide_edge_coloursteps.Rd b/man/guide_edge_coloursteps.Rd index be79a892..9cec744c 100644 --- a/man/guide_edge_coloursteps.Rd +++ b/man/guide_edge_coloursteps.Rd @@ -25,11 +25,8 @@ guide_edge_colorsteps( \item{even.steps}{Should the rendered size of the bins be equal, or should they be proportional to their length in the data space? Defaults to \code{TRUE}} -\item{show.limits}{Logical. Should the limits of the scale be shown with -labels and ticks. Default is \code{NULL} meaning it will take the value from the -scale. This argument is ignored if \code{labels} is given as a vector of -values. If one or both of the limits is also given in \code{breaks} it will be -shown irrespective of the value of \code{show.limits}.} +\item{show.limits}{Should labels for the outer limits of the bins be printed? +Default is \code{NULL} which makes the guide use the setting from the scale} \item{ticks}{A logical specifying if tick marks on the colourbar should be visible.} diff --git a/man/scale_edge_alpha.Rd b/man/scale_edge_alpha.Rd index 270bc58c..3b36b213 100644 --- a/man/scale_edge_alpha.Rd +++ b/man/scale_edge_alpha.Rd @@ -22,7 +22,7 @@ scale_edge_alpha_manual(..., values, breaks = waiver(), na.value = NA) scale_edge_alpha_identity(..., guide = "none") } \arguments{ -\item{...}{Other arguments passed on to \code{\link[ggplot2:continuous_scale]{continuous_scale()}}, \code{\link[ggplot2:binned_scale]{binned_scale()}}, +\item{...}{Other arguments passed on to \code{\link[ggplot2:continuous_scale]{continuous_scale()}}, \link[ggplot2]{binned_scale}, or \code{\link[ggplot2:discrete_scale]{discrete_scale()}} as appropriate, to control name, limits, breaks, labels and so forth.} diff --git a/man/scale_edge_colour.Rd b/man/scale_edge_colour.Rd index 82e15ea1..30a7160b 100644 --- a/man/scale_edge_colour.Rd +++ b/man/scale_edge_colour.Rd @@ -415,19 +415,18 @@ omitted.} \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. }} - \item{\code{guide}}{A function used to create a guide or its name. See -\code{\link[ggplot2:guides]{guides()}} for more information.} \item{\code{expand}}{For position scales, a vector of range expansion constants used to add some padding around the data to ensure that they are placed some distance away from the axes. Use the convenience function \code{\link[ggplot2:expansion]{expansion()}} to generate the values for the \code{expand} argument. The defaults are to expand the scale by 5\% on each side for continuous variables, and by 0.6 units on each side for discrete variables.} + \item{\code{guide}}{A function used to create a guide or its name. See +\code{\link[ggplot2:guides]{guides()}} for more information.} \item{\code{position}}{For position scales, The position of the axis. \code{left} or \code{right} for y axes, \code{top} or \code{bottom} for x axes.} \item{\code{super}}{The super class to use for the constructed scale} @@ -452,8 +451,7 @@ name(s) of the aesthetic(s) that this scale works with. This can be useful, for example, to apply colour settings to the \code{colour} and \code{fill} aesthetics at the same time, via \code{aesthetics = c("colour", "fill")}.} -\item{type}{One of "seq" (sequential), "div" (diverging) or "qual" -(qualitative)} +\item{type}{One of seq (sequential), div (diverging) or qual (qualitative)} \item{palette}{If a string, will use that named palette. If a number, will index into the list of palettes of appropriate \code{type}. The list of available palettes can found diff --git a/man/scale_edge_fill.Rd b/man/scale_edge_fill.Rd index 4462affa..165a1a4e 100644 --- a/man/scale_edge_fill.Rd +++ b/man/scale_edge_fill.Rd @@ -231,19 +231,18 @@ omitted.} \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. }} - \item{\code{guide}}{A function used to create a guide or its name. See -\code{\link[ggplot2:guides]{guides()}} for more information.} \item{\code{expand}}{For position scales, a vector of range expansion constants used to add some padding around the data to ensure that they are placed some distance away from the axes. Use the convenience function \code{\link[ggplot2:expansion]{expansion()}} to generate the values for the \code{expand} argument. The defaults are to expand the scale by 5\% on each side for continuous variables, and by 0.6 units on each side for discrete variables.} + \item{\code{guide}}{A function used to create a guide or its name. See +\code{\link[ggplot2:guides]{guides()}} for more information.} \item{\code{position}}{For position scales, The position of the axis. \code{left} or \code{right} for y axes, \code{top} or \code{bottom} for x axes.} \item{\code{super}}{The super class to use for the constructed scale} @@ -268,8 +267,7 @@ name(s) of the aesthetic(s) that this scale works with. This can be useful, for example, to apply colour settings to the \code{colour} and \code{fill} aesthetics at the same time, via \code{aesthetics = c("colour", "fill")}.} -\item{type}{One of "seq" (sequential), "div" (diverging) or "qual" -(qualitative)} +\item{type}{One of seq (sequential), div (diverging) or qual (qualitative)} \item{palette}{If a string, will use that named palette. If a number, will index into the list of palettes of appropriate \code{type}. The list of available palettes can found diff --git a/man/scale_edge_linetype.Rd b/man/scale_edge_linetype.Rd index df970d67..748f4c23 100644 --- a/man/scale_edge_linetype.Rd +++ b/man/scale_edge_linetype.Rd @@ -65,7 +65,6 @@ omitted.} \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. diff --git a/man/scale_edge_shape.Rd b/man/scale_edge_shape.Rd index d1f0de6c..95914d82 100644 --- a/man/scale_edge_shape.Rd +++ b/man/scale_edge_shape.Rd @@ -68,7 +68,6 @@ omitted.} \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. diff --git a/man/scale_edge_size.Rd b/man/scale_edge_size.Rd index 2a3e2b90..a8b9dd07 100644 --- a/man/scale_edge_size.Rd +++ b/man/scale_edge_size.Rd @@ -87,7 +87,6 @@ Also accepts rlang \link[rlang:as_function]{lambda} function notation. \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. diff --git a/man/scale_edge_width.Rd b/man/scale_edge_width.Rd index 35221bde..48dcac39 100644 --- a/man/scale_edge_width.Rd +++ b/man/scale_edge_width.Rd @@ -70,7 +70,6 @@ Also accepts rlang \link[rlang:as_function]{lambda} function notation. \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation. diff --git a/man/scale_label_size.Rd b/man/scale_label_size.Rd index bb01cb33..a0bd426e 100644 --- a/man/scale_label_size.Rd +++ b/man/scale_label_size.Rd @@ -70,7 +70,6 @@ Also accepts rlang \link[rlang:as_function]{lambda} function notation. \item \code{waiver()} for the default labels computed by the transformation object \item A character vector giving labels (must be same length as \code{breaks}) -\item An expression vector (must be the same length as breaks). See ?plotmath for details. \item A function that takes the breaks as input and returns labels as output. Also accepts rlang \link[rlang:as_function]{lambda} function notation.