s_curve | R Documentation |
Simulation data randomly sampled from an S-shaped curve. Translated from the
scikit-learn Pythom
function sklearn.datasets.make_s_curve
.
s_curve(n_samples = 100, noise = 0)
n_samples |
The number of points to create. |
noise |
Add random noise normally-distributed with mean 0 and standard
deviation |
Creates a series of points sampled from an S-shaped curve in 3D, with optional normally-distributed noise. The S shape is oriented such that you should be able to see it if you plot the X and Z columns.
Points are colored based on their distance along the curve.
Data frame with x
, y
, z
columns containing the
coordinates of the points and color
the RGB color.
Buitinck, L., Louppe, G., Blondel, M., Pedregosa, F., Mueller, A., Grisel, O., ... & Varoquaux, G. (2013). API design for machine learning software: experiences from the scikit-learn project. arXiv preprint arXiv:1309.0238.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.