Learn R Programming

ganGenerativeData (version 2.1.6)

gdPlotParameters: Specify plot parameters for generative data

Description

Specify plot parameters for generative data passed to function gdPlotProjection(). When density value thresholds with assigned colors are specified generative data is drawn for density value ranges in increasing order.

Usage

gdPlotParameters(
  percent = 10,
  densityValueThresholds = c(),
  densityValueColors = c("red")
)

Value

List of plot parameters for generative data

Arguments

percent

Percent of randomly selected rows in generative data

densityValueThresholds

Vector of density value thresholds

densityValueColors

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

Examples

Run this code
if (FALSE) {
gdPlotParameters(50, c(0.75), c("red", "green"))}

Run the code above in your browser using DataLab