Pairs plots using ggpairs

pairs_plot(x, etas, bins = 15, alpha = 0.6, fill = "black",
  col = "grey", upper_fun = NULL, lower_fun = NULL, ...)

eta_pairs(...)

Arguments

x

plotting data.frame

etas

character col//label for pairs data; see col_label

bins

passed to geom_histogram

alpha

passed to geom_histogram

fill

passed to geom_histogram

col

passed to geom_histogram

upper_fun

function to use for upper argument

lower_fun

function to use for lower argument

...

passed to GGally::ggpairs

Value

The result from a ggpairs call (a single plot).

Details

This function requires the GGally package to be installed.

When the length of etas is one, arguments are passed to eta_hist and that result is returned.

Examples

id <- pmplots_data_id() etas <- c("ETA1//ETA-CL", "ETA2//ETA-VC", "ETA3//ETA-KA") eta_pairs(id,etas)
#> Loading required namespace: GGally
#> Registered S3 method overwritten by 'GGally': #> method from #> +.gg ggplot2
df <- data.frame(x = rnorm(1000), y = rnorm(1000)) pairs_plot(df, c("x", "y"))