Plots a scatterplot of non-dominated points in the objective space
utilizing the ggplot2 package. The function returns a ggplot
object
which can be furhter modified via additional ggplot layers.
If the passed object is a data.frame
, each line is considered to contain
the fitness values of one individual. Contrary, if a matrix is passed, it is
considered to be passed in ecr2 format, i.e., each column corresponds to one
point. The matrix is then transposed and converted to a data.frame
.
plotFront(x, obj.names = NULL, minimize = TRUE)
x | [ |
---|---|
obj.names | [ |
minimize | [ |
[ggplot
] ggplot object.
At the moment only two-dimensional objective spaces are supported.
matrix#> function (data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames = NULL) #> { #> if (is.object(data) || !is.atomic(data)) #> data <- as.vector(data) #> .Internal(matrix(data, nrow, ncol, byrow, dimnames, missing(nrow), #> missing(ncol))) #> } #> <bytecode: 0x7f967c28e4a0> #> <environment: namespace:base>