if (FALSE) {
mtcars2 <-
mtcars |>
mutate(
cyl2 = factor(cyl),
carb2 = factor(carb),
shape = c("V-shaped", "straight")[1 + vs],
gear2 = factor(gear),
transmission = c("automatic", "manual")[1 + am])
design_plot(mtcars2)
}
Run the code above in your browser using DataLab