library(plotly)
## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
# Создание данных
x <- c(1, 2, 3, 4, 5)
y <- c(10, 15, 13, 18, 20)

# Создание графика с помощью Plotly
plot_ly(x = x, y = y, type = 'scatter', mode = 'lines+markers') %>%
  layout(title = 'Простой график', xaxis = list(title = 'X'), yaxis = list(title = 'Y'))