View source: R/dmPlotMetricSubspaces.R
dmPlotMetricSubspaces | R Documentation |
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.
dmPlotMetricSubspaces(
plotMetricSubspaceParametersList = list(),
imageFileName,
title,
columnIndices,
evaluateDataSourceFileName = "",
plotEvaluateDataSourceParameters = NULL
)
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(). |
None
## Not run:
dmRead("dm.bin", "gd.bin")
dmPlotMetricSubspaces(
list(dmPlotMetricSubspaceParameters(level = 0.7,
labels = c("*"),
percent = 50,
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))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.