% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggscatmat.R
\name{ggscatmat}
\alias{ggscatmat}
\title{Traditional scatterplot matrix for purely quantitative variables}
\usage{
ggscatmat(
  data,
  columns = 1:ncol(data),
  color = NULL,
  alpha = 1,
  corMethod = "pearson"
)
}
\arguments{
\item{data}{a data matrix. Should contain numerical (continuous) data.}

\item{columns}{an option to choose the column to be used in the raw dataset. Defaults to \code{1:ncol(data)}.}

\item{color}{an option to group the dataset by the factor variable and color them by different colors.
Defaults to \code{NULL}, i.e. no coloring. If supplied, it will be converted to a factor.}

\item{alpha}{an option to set the transparency in scatterplots for large data. Defaults to \code{1}.}

\item{corMethod}{method argument supplied to \code{\link[stats]{cor}}}
}
\description{
This function makes a scatterplot matrix for quantitative variables with density plots on the diagonal
and correlation printed in the upper triangle.
}
\examples{
# small function to display plots only if it's interactive
p_ <- GGally::print_if_interactive

data(flea)

p_(ggscatmat(flea, columns = 2:4))
p_(ggscatmat(flea, columns = 2:4, color = "species"))
}
\author{
Mengjia Ni, Di Cook
}
