File: geom_exec.Rd

package info (click to toggle)
r-cran-ggpubr 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,240 kB
  • sloc: makefile: 2
file content (34 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_exec.R
\name{geom_exec}
\alias{geom_exec}
\title{Execute ggplot2 functions}
\usage{
geom_exec(geomfunc = NULL, data = NULL, position = NULL, ...)
}
\arguments{
\item{geomfunc}{a ggplot2 function (e.g.: geom_point)}

\item{data}{a data frame to be used for mapping}

\item{position}{Position adjustment, either as a string, or the result of a
call to a position adjustment function.}

\item{...}{arguments accepted by the function}
}
\value{
return a plot if geomfunc!=Null or a list(option, mapping) if
  geomfunc = NULL.
}
\description{
A helper function used by ggpubr functions to execute any geom_*
  functions in ggplot2. Useful only when you want to call a geom_* function
  without carrying about the arguments to put in aes(). Basic users of ggpubr
  don't need this function.
}
\examples{
\dontrun{
ggplot() + geom_exec(geom_point, data = mtcars,
    x = "mpg", y = "wt", size = "cyl", color = "cyl")
}
}