View source: R/create_buffers.R
add_buffers | R Documentation |
Add buffers to an existing design
add_buffers(design_obj, type)
design_obj |
A design object (with class "design") from the design() function |
type |
The type of buffer to add. One of 'edge', 'row', 'column', 'double row', or 'double column'. |
The modified design object with buffers added
# Create a simple CRD design
des <- design(type = "crd", treatments = c("A", "B"), reps = 3, nrows = 2, ncols = 3, seed = 42)
# Plot the original design
autoplot(des)
# Add edge buffers to the design
des_buf <- add_buffers(des, type = "edge")
# Plot the design with buffers
autoplot(des_buf)
# Add double row buffers
des_row_buf <- add_buffers(des, type = "double row")
autoplot(des_row_buf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.