8/3/2020
library(plotly)
library(datasets)
maxQuakes <- quakes[quakes$mag>=5,]
content <- with(maxQuakes, paste("<p>Depth (km): ",
maxQuakes$depth,
"</p><p>Richter: ",
maxQuakes$mag, sep = "" ))
plot_ly(maxQuakes,
x = ~depth,
y = ~mag,
type = "scatter",
color = ~factor(mag))