May 20, 2020

Summary

This is a presentation with an interactive plot using Plotly. The dataset iris was used to create the plot.

A scatter plot illustrating the petal length by petal witdh for the different species was generated.

The code for this plot is illustrated in the following slide.

Plot Code

library(plotly)
data(iris)
p <- plot_ly(iris, x = ~Petal.Length, y = ~Petal.Width, 
             mode = "markers", 
             color = ~(as.factor(Species)))

Plot