# plot-methods: Methods for Function 'plot' in Package 'rmoo' In rmoo: Multi-Objective Optimization in R

 plot R Documentation

## Methods for Function 'plot' in Package 'rmoo'

### Description

Method used to visualize the fitness of the individuals during the execution of the algorithms.

### Usage

```plot(x, y, ...)

## S4 method for signature 'nsga,missing'
plot(x, y = "missing", type = c("scatter", "pcp", "heatmap", "polar"), ...)

## S4 method for signature 'nsga1,missing'
plot(x, y = "missing", type = c("scatter", "pcp", "heatmap", "polar"), ...)

## S4 method for signature 'nsga2,missing'
plot(x, y = "missing", type = c("scatter", "pcp", "heatmap", "polar"), ...)

## S4 method for signature 'nsga3,missing'
plot(x, y = "missing", type = c("scatter", "pcp", "heatmap", "polar"), ...)
```

### Arguments

 `x, y` Objects of either class nsga1, nsga2, or nsga3. `...` other arguments passed on to methods "optimal"An argument passed to the "scatter" plot. A matrix of dimension equal to the fitness with which they are compared. This value can only be compared in 2 and 3 dimensional "scatter" plots. "individual"An argument passed to the "heatmap" and "polar" plots. A vector that represents the fitness of the individuals to be displayed. `type` Type of graph to draw, the graphs can be of the type "scatter", "pcp", "heatmap", or "polar"

### Details

The following plots are available:

• "Scatter Plot"

• "Parallel Coordinate Plot"

• "Heat Map"

• "Polar Coordinate"

### Value

A graph of the evaluated type.

### Author(s)

Francisco Benitez benitezfj94@gmail.com

### Examples

```# Where 'out' is an object of class nsga1, nsga2, or nsga3.
# The plot method will by default plot a scatter plot.
#
# plot(out)
#
# The Parallel Coordinate Plot will be plotted if "pcp" is passed as a parameter to "type".
#
# plot(out, type="pcp")
#
# A heat map plot will be plotted if "heatmap" is passed as a parameter to "type"
# and a vector with the individuals to plot to "individual"
#
# plot(out, type = "heatmap", individual = c(1:5))
#
# A polar coordinate plot will be plotted if "polar" is passed as a parameter to "type"
# and a vector with the individuals to plot to "individual"
#
# plot(out, type = "polar", individual = c(1:5))

```

rmoo documentation built on Sept. 24, 2022, 9:05 a.m.