gdPlot2dProjection: Create an image file for generative data and data source

Description Usage Arguments Value Examples

View source: R/gdPlot2dProjection.R

Description

Create an image file containing two-dimensional projections for a number of randomly selected rows in generative data and data source. Data points of data source are drawn above data points of generative data. When density value thresholds with assigned colours are specified generative data is drawn for density value ranges in increasing order.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gdPlot2dProjection(
  imageFileName,
  title,
  columnIndices,
  numberOfRandomGdPoints,
  numberOfRandomDsPoints,
  densityValueThresholds = c(),
  densityValueColours = c("red"),
  dsColour = "blue"
)

Arguments

imageFileName

Name of image file

title

Title of image

columnIndices

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

numberOfRandomGdPoints

Number of randomly selected rows in generative data

numberOfRandomDsPoints

Number of randomly selected rows in data source

densityValueThresholds

Vector of density value thresholds

densityValueColours

Vector of colours assigned to density value thresholds. The size must be the size of densityValueThresholds plus one.

dsColour

Colour for data points of data source

Value

None

Examples

1
2
3
4
5
gdRead("gd.bin", "iris4d.bin")
gdPlot2dProjection("gd34d.png", c(3, 4), "Generative Data for the Iris Dataset", 250000, 2500)
gdPlot2dProjection("gd34ddv.png",
"Generative Data with a Density Value Threshold for the Iris Dataset",
c(3, 4), 250000, 2500, c(0.04), c("red", "green"))

ganGenerativeData documentation built on Oct. 10, 2021, 1:10 a.m.