Learn R Programming

iraceplot (version 2.1.0)

sampling_frequency_iteration: Frequency and Density plot based on its iteration

Description

The function will return a frequency plot used for categorical data (its values are string, show a bar plot) or numeric data (show a histogram and density plot) by each iteration

Usage

sampling_frequency_iteration(
  irace_results,
  param_name,
  numerical_type = "both",
  filename = NULL
)

Value

Frequency and/or density plot

Arguments

irace_results

The data generated when loading the .Rdata file created by irace (or the filename of that file).

param_name

String, name of the parameter to be included (example: param_name = "algorithm")

numerical_type

String, (default "both") Indicates the type of plot to be displayed for numerical parameters. "density" shows a density plot, "frequency" shows a frequency plot and "both" show both frequency and density.

filename

(character(1)) File name to save the plot, for example "~/path/example/filename.png".

Examples

Run this code
iraceResults <- read_logfile(system.file(package="irace", "exdata",
                                         "irace-acotsp.Rdata", mustWork = TRUE))
sampling_frequency_iteration(iraceResults, param_name = "alpha")
# \donttest{ 
sampling_frequency_iteration(iraceResults, param_name = "alpha", numerical_type="density")
# }

Run the code above in your browser using DataLab