gdPlotProjection {ganGenerativeData} | R Documentation |
Create an image file for generative data and data source
Description
Create an image file containing two-dimensional projections of generative data and data source. Plot pagd_2500_6.binrameters for generative data and data source are passed by functions gdPlotParameters() and gdPlotDataSourceParameters(). Data points of data source are drawn above data points of generative data.
Usage
gdPlotProjection(
imageFileName,
title,
columnIndices,
generativeDataParameters = gdPlotParameters(percent = 10, densityValueThresholds = c(),
densityValueColors = c("red")),
dataSourceParameters = gdPlotDataSourceParameters(percent = 100, color = "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. |
generativeDataParameters |
Plot generative data parameters, see function gdPlotParameters(). |
dataSourceParameters |
Plot data source parameters, see function gdPlotDataSourceParameters(). |
Value
None
Examples
## Not run:
gdRead("gd.bin", "ds.bin")
gdPlotProjection("gd12ddv.png",
"Generative Data with a Density Value Threshold for the Iris Dataset", c(1, 2),
gdPlotParameters(250000, c(0.71), c("red", "green")),
gdPlotDataSourceParameters(2500))
gdPlotProjection("gd34ddv.png",
"Generative Data with a Densit(y Value Threshold for the Iris Dataset", c(3, 4),
gdPlotParameters(250000, c(0.71), c("red", "green")),
gdPlotDataSourceParameters(2500))
## End(Not run)
[Package ganGenerativeData version 2.0.2 Index]