Learn R Programming

ganDataModel (version 2.0.1)

dmPlotMetricSubspaces: Create an image file for metric subspaces

Description

Create an image file containing two-dimensional projections of generative data contained in metric subspaces in a data model and optionally an evaluated data source. Plot parameters are passed by a list of generated plot parameters for different levels by dmPlotMetricSubspaceParameters() and by dmPlotEvaluateDataSourceParameters(). Data points are drawn in the order generative data contained in metric subspaces by increasing level and evaluated data source.

Usage

dmPlotMetricSubspaces(
  plotMetricSubspaceParametersList = list(),
  imageFileName,
  title,
  columnIndices,
  evaluateDataSourceFileName = "",
  plotEvaluateDataSourceParameters = NULL
)

Value

None

Arguments

plotMetricSubspaceParametersList

List of plot parameters for metric subspaces for different levels, see dmPlotMetricSubspaceParameters().

imageFileName

Name of image file

title

Title of image

columnIndices

Vector of two column indices that are used for the two-dimensional projection. Indices refer to indices of active columns of the data source used to create the data model.

evaluateDataSourceFileName

Name of evaluated data source file

plotEvaluateDataSourceParameters

Plot parameters for evaluated data source, see dmPlotEvaluateDataSourceParameters().

Examples

Run this code
if (FALSE) {
dmRead("dm.bin", "gd.bin")
dmPlotMetricSubspaces(
  list(dmPlotMetricSubspaceParameters(level = 0.5,
                                       labels = c("*"),
                                       percent = 100,
                                       boundary = TRUE,
                                       color = "red",
                                       backgroundPercent = 0,
                                       backgroundColor = "red",
                                       backgroundReset = TRUE,
                                       plotLabels = TRUE)),
  "ms.png",
  "Metric Subspaces for the Iris Dataset",
  c(3, 4),
  "ds.bin",
  dmPlotEvaluateDataSourceParameters(0.67))}

Run the code above in your browser using DataLab