R has a really powerful base plotting system. We’re going to go over the most basic of these options
x <- rnorm(100)
y <- rlnorm(100)
hist(x)
hist(x, freq=FALSE)
boxplot(y)
plot(y~x) #yes, the tilde is important
plot(y~x, main="Y versus X, yo")
factor1 <- as.factor(c("yes","yes","maybe","yes","yes","yes","no","no","yes","no"))
factor2 <- as.factor(c("red","red","blue","red","blue","red","blue","blue","blue","red"))
plot(factor1~factor2)
plot(y~x)
my_line <- lm(y~x)
abline(my_line)