Learn R Programming

mlbench (version 2.1-3)

mlbench.shapes: Shapes in 2d

Description

A Gaussian, square, triangle and wave in 2 dimensions.

Usage

mlbench.shapes(n=500)

Arguments

n

number of patterns to create

Value

Returns an object of class "mlbench.shapes" with components

x

input values

classes

factor of length n with target classes

Examples

Run this code
# NOT RUN {
p<-mlbench.shapes()
plot(p)
# }

Run the code above in your browser using DataLab