This presentation demonstrates interactive visualizations created using Plotly in R. It includes the document creation date and interactive plots as required.
library(plotly)
df <- data.frame(
x = 1:10,
y = c(5, 7, 9, 12, 15, 18, 20, 25, 27, 30)
)
plot_ly(
data = df,
x = ~x,
y = ~y,
type = "scatter",
mode = "lines+markers"
)
df2 <- data.frame(
category = c("A", "B", "C", "D"),
value = c(10, 25, 15, 30)
)
plot_ly(
data = df2,
x = ~category,
y = ~value,
type = "bar"
)