From 0dc3283acfbf84da8882575b04e3db90607183c0 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Wed, 2 Aug 2017 11:54:07 -0400 Subject: [PATCH] spelling --- R/gg-plots.R | 2 +- R/ggnetworkmap.R | 2 +- man/ggally_text.Rd | 2 +- man/ggnetworkmap.Rd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/gg-plots.R b/R/gg-plots.R index 6ac63ff86..a6f060c32 100644 --- a/R/gg-plots.R +++ b/R/gg-plots.R @@ -844,7 +844,7 @@ ggally_barDiag <- function(data, mapping, ..., rescale = FALSE){ } -#' GGplot Text +#' Text Plot #' #' Plot text for a plot. #' diff --git a/R/ggnetworkmap.R b/R/ggnetworkmap.R index e74846703..0cc6f47a9 100644 --- a/R/ggnetworkmap.R +++ b/R/ggnetworkmap.R @@ -39,7 +39,7 @@ if(getRversion() >= "2.15.1") { #' @param label.size size of the labels. Defaults to \code{size / 2}. #' @param ... other arguments supplied to geom_text for the node labels. Arguments pertaining to the title or other items can be achieved through ggplot2 methods. #' @author Amos Elberg \email{amos.elberg@@gmail.com}. Original by Moritz Marbach \email{mmarbach@@mail.uni-mannheim.de}, Francois Briatte \email{f.briatte@@gmail.com} -#' @details This is a function for plotting graphs generated by \code{network} or \code{igraph} in a more flexible and elegant manner than permitted by ggnet. The function does not need to be the first plot in the ggplot chain, so the graph can be plotted on top of a map or other chart. Segments can be straight lines, or plotted as great circles. Note that the great circles feature can produce odd results with arrows and with vertices beyond the plot edges; this is a gglot2 limitation and cannot yet be fixed. Nodes can have two color schemes, which are then plotted as the center and ring around the node. The color schemes are selected by adding scale_fill_ or scale_color_ just like any other ggplot2 plot. If there are no rings, scale_color sets the color of the nodes. If there are rings, scale_color sets the color of the rings, and scale_fill sets the color of the centers. Note that additional arguments in the ... are passed to geom_text for plotting labels. +#' @details This is a function for plotting graphs generated by \code{network} or \code{igraph} in a more flexible and elegant manner than permitted by ggnet. The function does not need to be the first plot in the ggplot chain, so the graph can be plotted on top of a map or other chart. Segments can be straight lines, or plotted as great circles. Note that the great circles feature can produce odd results with arrows and with vertices beyond the plot edges; this is a ggplot2 limitation and cannot yet be fixed. Nodes can have two color schemes, which are then plotted as the center and ring around the node. The color schemes are selected by adding scale_fill_ or scale_color_ just like any other ggplot2 plot. If there are no rings, scale_color sets the color of the nodes. If there are rings, scale_color sets the color of the rings, and scale_fill sets the color of the centers. Note that additional arguments in the ... are passed to geom_text for plotting labels. #' @importFrom utils installed.packages #' @examples #' # small function to display plots only if it's interactive diff --git a/man/ggally_text.Rd b/man/ggally_text.Rd index a48cb2ee9..9be3eb016 100644 --- a/man/ggally_text.Rd +++ b/man/ggally_text.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/gg-plots.R \name{ggally_text} \alias{ggally_text} -\title{GGplot Text} +\title{Text Plot} \usage{ ggally_text(label, mapping = ggplot2::aes(color = "black"), xP = 0.5, yP = 0.5, xrange = c(0, 1), yrange = c(0, 1), ...) diff --git a/man/ggnetworkmap.Rd b/man/ggnetworkmap.Rd index 25e143ed3..e1f4e11ef 100644 --- a/man/ggnetworkmap.Rd +++ b/man/ggnetworkmap.Rd @@ -58,7 +58,7 @@ such as output from \code{ggmap}, \code{ggnetworkmap} will plot on top of that c Otherwise, \code{ggnetworkmap} will generate coordinates using the Fruchterman-Reingold algorithm. } \details{ -This is a function for plotting graphs generated by \code{network} or \code{igraph} in a more flexible and elegant manner than permitted by ggnet. The function does not need to be the first plot in the ggplot chain, so the graph can be plotted on top of a map or other chart. Segments can be straight lines, or plotted as great circles. Note that the great circles feature can produce odd results with arrows and with vertices beyond the plot edges; this is a gglot2 limitation and cannot yet be fixed. Nodes can have two color schemes, which are then plotted as the center and ring around the node. The color schemes are selected by adding scale_fill_ or scale_color_ just like any other ggplot2 plot. If there are no rings, scale_color sets the color of the nodes. If there are rings, scale_color sets the color of the rings, and scale_fill sets the color of the centers. Note that additional arguments in the ... are passed to geom_text for plotting labels. +This is a function for plotting graphs generated by \code{network} or \code{igraph} in a more flexible and elegant manner than permitted by ggnet. The function does not need to be the first plot in the ggplot chain, so the graph can be plotted on top of a map or other chart. Segments can be straight lines, or plotted as great circles. Note that the great circles feature can produce odd results with arrows and with vertices beyond the plot edges; this is a ggplot2 limitation and cannot yet be fixed. Nodes can have two color schemes, which are then plotted as the center and ring around the node. The color schemes are selected by adding scale_fill_ or scale_color_ just like any other ggplot2 plot. If there are no rings, scale_color sets the color of the nodes. If there are rings, scale_color sets the color of the rings, and scale_fill sets the color of the centers. Note that additional arguments in the ... are passed to geom_text for plotting labels. } \examples{ # small function to display plots only if it's interactive