Alejandro Borges Sanchez
Jun/24/2021
Using gapminder we can see two examples
library(gapminder); library(plotly); suppressWarnings(suppressMessages( library(tidyverse)));
gapminder%>%
plot_ly()%>%
plotly::add_markers(x=~year,y=~lifeExp,z = ~gdpPercap,color=~continent,
text=~country)
gapminder%>%
plot_ly()%>%
plotly::add_markers(frame=~year,
y=~lifeExp,
x = ~gdpPercap,
color=~continent,
text=~country)