x = 1:10
summary(x)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.00 3.25 5.50 5.50 7.75 10.00
You can also embed plots, for example:
plot(x)
This will be a simple plot in R. We will first generate some simple data and then generate the plot.
x = 1:10
e = rnorm(10, 0, 3)
y = x + e
plot(x, y)