twoD_projections {ggDoE} | R Documentation |
Two Dimensional Projections of Latin Hypercube Designs
twoD_projections( design, point_color = "#21908CFF", grid = FALSE, point_size = 1.5, n_columns = 2 )
design |
A Latin hypercube design. Can be matrix, or data.frame |
point_color |
Change color of points in plots |
grid |
Logial argument. Specify if a grid should be added to each projection. The grid is constructed using seq(0,1,length=nrows(design)+1). Default is FALSE |
point_size |
Change size of points in plots |
n_columns |
number of columns for grid layout. Default is 2 |
A grid of scatter plots from all two dimensional projections of a Latin hypercube design.
set.seed(10) X <- lhs::randomLHS(n=15,k=4) twoD_projections(X,n_columns = 3,grid = TRUE) twoD_projections(X,n_columns = 2,point_color='red')