saveMetaepochsPopulations,hms-method {hmsr} | R Documentation |
saveMetaepochsPopulations
## S4 method for signature 'hms'
saveMetaepochsPopulations(object, path, dimensions)
object |
hms s4 object |
path |
path |
dimensions |
vector of two selected dimensions e.g. c(1,2) |
It doesn't return anything. It creates plots and saves them to a specified directory.
fitness <- function(x) x[1] + x[2]
lower <- c(-5, -5)
upper <- c(5, 5)
result <- hms(fitness = fitness, lower = lower, upper = upper)
selected_dimensions <- c(1, 2)
saveMetaepochsPopulations(result, tempdir(), selected_dimensions)