Skip to content
Snippets Groups Projects
Select Git revision
  • fee08f8e0478d232fd0c59c12f3deb0be1999425
  • master default protected
2 results

panel_cor.Rd

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    panel_cor.Rd 768 B
    % Generated by roxygen2: do not edit by hand
    % Please edit documentation in R/panel_cor.R
    \name{panel_cor}
    \alias{panel_cor}
    \alias{panel_lines}
    \alias{panel_hist}
    \title{Show correlation coefficient in pairs plot}
    \usage{
    panel_cor(x, y)
    
    panel_lines(x, y)
    
    panel_hist(x)
    }
    \arguments{
    \item{x}{numeric vector}
    
    \item{y}{numeric vector}
    }
    \description{
    This and the other functions are utility functions for the pairs plot.
    \code{panel_cor} shows the Pearson product-moment correlation coefficient in
    the selected panels. \code{panel_lines} shows the regression line and
    \code{panel_hist} histograms.
    }
    \examples{
    z <- matrix(rnorm(40), ncol = 4)
    pairs(z, upper.panel = panel_cor,
    lower.panel = panel_lines, diag.panel = panel_hist)
    }
    \seealso{
    \code{\link{pairs}}
    }