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 35 36 37 38 39 40 41 42 43 44 45
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_functions.r
\name{response_plot}
\alias{response_plot}
\title{Plot the response variable against the predictor variables.}
\usage{
response_plot(
data.,
formula.,
geoms = NULL,
global_aes = NULL,
plot = TRUE,
nrow = NULL,
ncol = NULL
)
}
\arguments{
\item{data.}{A data frame containing the variables in the formula.}
\item{formula.}{A formula of the form y ~ x1 + x2 + ... + xn, where
y is the response variable and x1, x2, ..., xn are the
predictor variables. A dot as right hand side is allowed.}
\item{geoms}{A list of ggplot2 geoms to be added to the plot.}
\item{global_aes}{A list of global aesthetics to be added to the plot.}
\item{plot}{A logical value indicating whether the plot should be displayed.}
\item{nrow, ncol}{Number of rows / columns in plot.}
}
\value{
A list of ggplot2 plots.
}
\description{
Plot the response variable against the predictor variables.
}
\examples{
library(ggplot2)
response_plot(iris, Sepal.Width ~ ., geoms=geom_point())
response_plot(iris, Sepal.Width ~ ., geoms=geom_point(), global_aes=list(color="Species"))
personality |> response_plot(easygon~., geoms=geom_point(), global_aes=NULL)
}
\concept{plotting}
|