Skip to contents

Two Dimensional Projections of Latin Hypercube Designs

Usage

pairs_plot(
  design,
  point_color = "#21908CFF",
  point_size = 1.5,
  grid = c(-1, -1),
  n_columns = 2
)

Arguments

design

A Latin hypercube design. Can be matrix, or data.frame

point_color

Change color of points in plots

point_size

Change size of points in plots

grid

A numeric vector specifying the dimensions of the grid to overlay.

n_columns

number of columns for grid layout. Default is 2

Value

A grid of scatter plots from all two dimensional projections of a Latin hypercube design.

Examples

set.seed(10)
X <- lhs::randomLHS(n=12,k=4)
pairs_plot(X,n_columns = 3)

pairs_plot(X,n_columns = 3, grid = c(3,2))