library
(ggplot2)
gfg < -
data.frame
(x=
c
(4, 9, 5, 6, 10, 2, 3, 7, 8, 1),
y=
c
(9, 4, 3, 1, 5, 2, 8, 10, 7, 6))
gfg_plot < -
ggplot
(gfg,
aes
(x, y)) +
geom_point
()+
scale_x_continuous
(expand=
c
(0, 0), limits=
c
(0, 10)) +
scale_y_continuous
(expand=
c
(0, 0), limits=
c
(0, 10))
gfg_plot