pairs2: xy plot of variables in two dataframes

View source: R/pairs2.R

pairs2R Documentation

xy plot of variables in two dataframes

Description

Prepare pair plots for two dataframes x,y: figure columns from x and rows from y. This results in fewer combinations than plot(xy_df)

Usage

pairs2(
  x,
  y,
  str_max = 16,
  oneLine = F,
  mai_fig = c(0.3, 0.3, 0.3, 0.1),
  mai_edge = c(0, 0, 0, 0),
  title = NA,
  pdf_out = NA,
  pdf_ht = 8,
  pdf_wd = 11,
  xlab_fig = NA,
  ylab_fig = NA,
  combination = F,
  square = F,
  ...
)

Arguments

x

first data.frame

y

second data.frame

str_max

number of characters per name to display

oneLine

T/F add one to one line?

mai_edge

"mai" parameters for composite figure

combination

T/F combinations of x and y inputs or x[,1] vs y[,1] and x[,2] vs y[,2]

square

T/F force graphs to be square (same x and y lims), only use if units match

...

additional arguments to plot

tile

optional figure title

Details

<Delete and Replace>


Revision History

1.0 2015 Jan 29 Roxygen header prepared
1.1 2022 March 03 added to RForInvt and added combination alternative

Value

<Delete and Replace>

Author(s)

Jacob Strunk <someone@somewhere.com>

See Also

plot

Examples


pairs2(mtcars,mtcars,combination=T)
pairs2(mtcars[,1:4],mtcars[5:8],combination=F)


jstrunk001/RForInvt documentation built on April 17, 2025, 5:02 p.m.