Overview

This webpage demonstrates an interactive Plotly chart created in R.
Plotly allows users to explore data by zooming, hovering, and panning dynamically.


Creating a Plotly Graph

# Load required library
library(plotly)

# Create some sample data
set.seed(123)
x <- rnorm(100)
y <- rnorm(100)

# Create interactive scatter plot
plot_ly(x = ~x, y = ~y, type = 'scatter', mode = 'markers',
        marker = list(size = 10, color = 'rgba(255, 182, 193, .9)',
                      line = list(color = 'rgba(152, 0, 0, .8)', width = 2))) %>%
  layout(title = "Interactive Scatter Plot using Plotly",
         xaxis = list(title = "X-axis Values"),
         yaxis = list(title = "Y-axis Values"))