DS Using R Lab Task With Screenshot
DS Using R Lab Task With Screenshot
# Basic Arithmetic
x <- 10
y <- 5
sum <- x + y
sum
# Plotting a Graph
x <- c(1, 2, 3, 4, 5)
y <- c(2, 4, 6, 8, 10)
plot(x, y, type='o', col='blue', main="Simple Line Plot", xlab="X-Axis", ylab="Y-Axis")