Estoy creando dos vectores, y los estoy sumando; este es mi codigo:
variable <-10
Variable2<- 20
Suma <- variable + Variable2
Suma
## [1] 30
Voy a hacer un ejemplo de cómo graficar
x <- c(10,20,30,40)
y <- c(2,10,8,10)
plot(x,y)
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.