Gjeffroy
April 24, 2017
This data sets consists of 3 different types of irises’ (Setosa, Versicolour, and Virginica) petal and sepal length, stored in a 150x4 numpy.ndarray
The rows being the samples and the columns being: Sepal Length, Sepal Width, Petal Length and Petal Width.
library(ggplot2)
library(plotly)
library(tidyr)
data("iris")
iris.tidy <- iris %>%
gather(Key, Value, -Species)%>%
separate(col = Key, into = c("type", "measure"), sep = "\\.")
g <- ggplot(iris.tidy, aes(x = Species, y = Value, col = type)) +
geom_jitter() +
facet_grid(. ~ measure)
ggplotly(g)