View source: R/mlbench-class.R
plot.mlbench | R Documentation |
Plots the data of an mlbench object using different colors for each class. If the dimension of the input space is larger that 2, a scatter plot matrix is used.
## S3 method for class 'mlbench'
plot(x, xlab="", ylab="", ...)
x |
Object of class |
xlab |
Label for x-axis. |
ylab |
Label for y-axis. |
... |
Further plotting options. |
# 6 normal classes
p <- mlbench.2dnormals(500,6)
plot(p)
# 4-dimensiona XOR
p <- mlbench.xor(500,4)
plot(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.