The Iris flower data set is a multivariate data set introduced by the British statistician and biologist Ronald Fisher in his 1936 paper The use of multiple measurements in taxonomic problems as an example of linear discriminant analysis.
library(plotly)
## Loading required package: ggplot2
##
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
##
## last_plot
## The following object is masked from 'package:stats':
##
## filter
## The following object is masked from 'package:graphics':
##
## layout
data(iris)
plot_ly(x= iris$Sepal.Width, y= iris$Sepal.Length, z = iris$Species,
type = "scatter3d", mode = "markers", color = iris$Species)
On the previous grap you will see a 3D chart of Iris flowers data set